1
0
Fork 0
mirror of https://github.com/ldericher/fftcgtool synced 2025-01-15 06:53:00 +00:00
This commit is contained in:
Jörn-Michael Miehe 2021-08-03 02:22:00 +02:00
parent e6f9494786
commit f14dc6c21d
3 changed files with 28 additions and 22 deletions

View file

@ -1,10 +1,9 @@
out
__pycache__
.git
out/
**/__pycache__/
.git/
.idea/
.gitignore
.dockerignore
/.gitignore
/.dockerignore
Dockerfile
README.md
ffdecks.json
/Dockerfile

View file

@ -1,21 +1,26 @@
FROM python:3.7-alpine
FROM python:3.6-alpine
ENV LIBRARY_PATH=/lib:/usr/lib
ENV PYTHONUNBUFFERED 1
RUN \
# install build prerequisites \
apk add --no-cache \
build-base \
jpeg-dev \
zlib-dev \
&& pip3 install pillow requests \
# remove build prerequisites \
&& apk del --no-cache \
build-base
WORKDIR "/app"
RUN set -ex; \
pip3 install pipenv;
COPY Pipfile Pipfile.lock ./
RUN set -ex; \
\
# install build prerequisites
apk add -t build_reqs --no-cache \
build-base \
jpeg-dev \
zlib-dev \
; \
pipenv sync; \
# remove build prerequisites
apk del --no-cache build_reqs;
COPY . .
ENTRYPOINT ["./main.py"]
ENTRYPOINT ["pipenv", "run", "./main.py"]

2
main.py Normal file → Executable file
View file

@ -1,3 +1,5 @@
#!/usr/bin/env python3
import requests
from fftcg.opus import Opus