18 lines
472 B
Docker
18 lines
472 B
Docker
FROM docker.beryju.org/passbook/dev:latest as static-build
|
|
|
|
COPY ./passbook/ /app/passbook
|
|
COPY ./manage.py /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
|
|
|
|
FROM docker.beryju.org/pixie/server
|
|
|
|
COPY --from=static-build /app/static /data/static/
|
|
COPY --from=static-build /app/static/robots.txt /data/robots.txt
|
|
WORKDIR /data
|