sycgram/Dockerfile

18 lines
653 B
Docker
Raw Normal View History

2022-04-06 14:39:27 +00:00
FROM python:3.9-alpine
LABEL maintainer=iwumingz
WORKDIR /sycgram
COPY . /sycgram
2022-04-08 06:52:38 +00:00
# The libc6-compat dependency is required to use the host's docker commands
RUN apk add --no-cache libjpeg libwebp libpng py3-lxml bc neofetch libc6-compat \
2022-04-06 14:39:27 +00:00
&& apk add --no-cache --virtual build-deps gcc g++ zlib-dev jpeg-dev libxml2-dev libxslt-dev libwebp-dev libpng-dev \
&& pip install -r requirements.txt --no-cache-dir \
&& apk del build-deps \
&& mkdir -p /sycgram/data \
&& rm -rf .git .github .gitignore Dockerfile install.sh LICENSE README.md requirements.txt
VOLUME /sycgram/data
ENTRYPOINT ["/usr/local/bin/python3", "-u", "main.py"]