8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 23:22:25 +00:00
re2o/docker/Dockerfile-nginx

13 lines
621 B
Text
Raw Permalink Normal View History

2024-03-10 11:06:29 +00:00
FROM python:3.9-bullseye AS build
ENV PYTHONUNBUFFERED=1
RUN pip install poetry
WORKDIR /code
2024-04-24 13:16:40 +00:00
RUN apt-get update && apt-get install -y --no-install-recommends gettext-base gettext libpq-dev fonts-font-awesome libjs-bootstrap libjs-jquery
2024-03-10 11:06:29 +00:00
COPY . /code/
RUN poetry install --extras "postgresql"
2024-03-10 11:21:29 +00:00
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
2024-03-10 11:06:29 +00:00
FROM nginx
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /code/static_files /static