1
0
Fork 0
mirror of https://github.com/ldericher/fftcgtool synced 2025-01-15 15:02:59 +00:00
fftcgtool/Dockerfile
2021-08-04 19:09:25 +02:00

32 lines
596 B
Docker

FROM python:3.6-alpine
ENV PYTHONUNBUFFERED 1
WORKDIR "/app"
RUN set -ex; \
pip3 install \
--no-cache-dir --no-color --disable-pip-version-check --no-python-version-warning \
pipenv \
;
COPY Pipfile Pipfile.lock ./
RUN set -ex; \
# install prerequisites
apk add --no-cache \
g++ \
jpeg-dev \
zlib-dev \
; \
# build/install local packages
pipenv install --deploy; \
pipenv --clear; \
# remove build-only prerequisites
apk del --no-cache \
g++ \
;
COPY . .
ENTRYPOINT ["pipenv", "run", "./main.py"]