This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2019-02-11 17:01:29 +00:00
|
|
|
FROM python:3.6-slim-stretch as build
|
|
|
|
|
|
|
|
COPY ./passbook/ /app/passbook
|
|
|
|
COPY ./manage.py /app/
|
|
|
|
COPY ./requirements.txt /app/
|
|
|
|
|
2019-02-13 15:41:51 +00:00
|
|
|
WORKDIR /app/
|
2019-02-11 17:01:29 +00:00
|
|
|
|
|
|
|
RUN mkdir /app/static/ && \
|
|
|
|
pip install -r requirements.txt && \
|
|
|
|
pip install psycopg2 && \
|
|
|
|
./manage.py collectstatic --no-input
|
|
|
|
|
2019-02-08 13:57:16 +00:00
|
|
|
FROM python:3.6-slim-stretch
|
|
|
|
|
|
|
|
COPY ./passbook/ /app/passbook
|
|
|
|
COPY ./manage.py /app/
|
|
|
|
COPY ./requirements.txt /app/
|
2019-02-14 15:31:40 +00:00
|
|
|
COPY --from=build /app/static /app/static/
|
2019-02-08 13:57:16 +00:00
|
|
|
|
|
|
|
WORKDIR /app/
|
|
|
|
|
|
|
|
RUN pip install -r requirements.txt && \
|
|
|
|
pip install psycopg2 && \
|
|
|
|
adduser --system --home /app/ passbook && \
|
|
|
|
chown -R passbook /app/
|
|
|
|
|
|
|
|
USER passbook
|