docker(minor): fix static build failing
This commit is contained in:
parent
9d640efc88
commit
bee5c200b6
|
@ -1,14 +1,16 @@
|
||||||
FROM docker.beryju.org/passbook/dev:latest as static-build
|
FROM docker.beryju.org/passbook/dev as static-build
|
||||||
|
|
||||||
COPY ./passbook/ /app/passbook
|
COPY ./passbook/ /app/passbook
|
||||||
COPY ./manage.py /app/
|
COPY ./manage.py /app/
|
||||||
COPY ./requirements.txt /app/
|
|
||||||
|
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
|
ENV PASSBOOK_POSTGRESQL__USER=passbook
|
||||||
|
# CI Password, same as in .gitlab-ci.yml
|
||||||
|
ENV PASSBOOK_POSTGRESQL__PASSWORD="EK-5jnKfjrGRm<77"
|
||||||
RUN ./manage.py collectstatic --no-input
|
RUN ./manage.py collectstatic --no-input
|
||||||
|
|
||||||
FROM nginx:latest
|
FROM nginx:latest
|
||||||
|
|
||||||
COPY --from=static-build /app/static /static/static/
|
COPY --from=static-build /app/static /static/_/static/
|
||||||
COPY ./passbook/core/nginx.conf /etc/nginx/nginx.conf
|
COPY ./passbook/core/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
Reference in New Issue