2021-06-27 16:39:42 +02:00
|
|
|
FROM registry.wtf-eg.net/ki-backend-builder:1.0.0 as builder
|
2021-06-14 21:55:27 +02:00
|
|
|
|
|
|
|
COPY Pipfile* ./
|
|
|
|
|
|
|
|
RUN PIP_USER=1 PIP_IGNORE_INSTALLED=1 pipenv install --system --deploy --ignore-pipfile
|
|
|
|
RUN pip3 uninstall --yes pipenv
|
|
|
|
|
|
|
|
|
2021-06-27 16:39:42 +02:00
|
|
|
FROM registry.wtf-eg.net/ki-backend-base:1.0.0 as ki-backend
|
2021-06-14 21:55:27 +02:00
|
|
|
|
|
|
|
# Install six explicitly. Otherwise Python complains about it missing.
|
|
|
|
RUN pip3 install six
|
|
|
|
|
|
|
|
COPY --from=builder $PYROOT/bin/ $PYROOT/bin/
|
|
|
|
COPY --from=builder $PYROOT/lib/ $PYROOT/lib/
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
CMD ["python3", "run_prod.py"]
|