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
24
Dockerfile
24
Dockerfile
|
@ -5,21 +5,27 @@ ENV PYTHONUNBUFFERED 1
|
||||||
WORKDIR "/app"
|
WORKDIR "/app"
|
||||||
|
|
||||||
RUN set -ex; \
|
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 ./
|
COPY Pipfile Pipfile.lock ./
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
\
|
# install prerequisites
|
||||||
# install build prerequisites
|
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
build-base \
|
g++ \
|
||||||
jpeg-dev \
|
jpeg-dev \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
; \
|
; \
|
||||||
pipenv sync; \
|
# build/install local packages
|
||||||
# remove build prerequisites
|
pipenv install --deploy; \
|
||||||
apk del --no-cache build-base;
|
pipenv --clear; \
|
||||||
|
# remove build-only prerequisites
|
||||||
|
apk del --no-cache \
|
||||||
|
g++ \
|
||||||
|
;
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue