mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 15:33:45 +00:00
13 lines
No EOL
573 B
Text
13 lines
No EOL
573 B
Text
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"
|
|
ENV POSTGRES_DB=postgres POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres SUPERUSER_LOGIN=admin SUPERUSER_PASS=admin SUPERUSER_EMAIL=admin@example.net ENV=dev
|
|
RUN poetry run python manage.py collectstatic --noinput
|
|
|
|
FROM nginx
|
|
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=build /code/static_files /static |