mirror of
https://github.com/ldericher/fftcgtool
synced 2025-01-15 15:02:59 +00:00
Docker
This commit is contained in:
parent
f375d5792d
commit
b4a690d84e
1 changed files with 15 additions and 9 deletions
20
Dockerfile
20
Dockerfile
|
@ -5,21 +5,27 @@ ENV PYTHONUNBUFFERED 1
|
|||
WORKDIR "/app"
|
||||
|
||||
RUN set -ex; \
|
||||
pip3 install pipenv;
|
||||
pip3 install \
|
||||
--no-cache-dir --no-color --disable-pip-version-check --no-python-version-warning \
|
||||
pipenv \
|
||||
;
|
||||
|
||||
COPY Pipfile Pipfile.lock ./
|
||||
|
||||
RUN set -ex; \
|
||||
\
|
||||
# install build prerequisites
|
||||
# install prerequisites
|
||||
apk add --no-cache \
|
||||
build-base \
|
||||
g++ \
|
||||
jpeg-dev \
|
||||
zlib-dev \
|
||||
; \
|
||||
pipenv sync; \
|
||||
# remove build prerequisites
|
||||
apk del --no-cache build-base;
|
||||
# build/install local packages
|
||||
pipenv install --deploy; \
|
||||
pipenv --clear; \
|
||||
# remove build-only prerequisites
|
||||
apk del --no-cache \
|
||||
g++ \
|
||||
;
|
||||
|
||||
COPY . .
|
||||
|
||||
|
|
Loading…
Reference in a new issue