|
|
|
@ -5,8 +5,8 @@ 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 |
|
|
|
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 |
|
|
|
|