You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
485 B

FROM python:3.9-bullseye AS build
ENV PYTHONUNBUFFERED=1
RUN pip install poetry
WORKDIR /code
RUN apt-get update && apt-get install -y --no-install-recommends gettext-base gettext libpq-dev
COPY . /code/
RUN poetry install --extras "postgresql"
RUN ENV=dev DATABASE_URL='' poetry run python manage.py collectstatic --noinput
RUN poetry run python manage.py compilemessages
FROM nginx
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /code/static_files /static