1
0
Fork 0
mirror of https://github.com/ldericher/fftcgtool synced 2025-01-15 15:02:59 +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 out/
__pycache__ **/__pycache__/
.git .git/
.idea/
.gitignore /.gitignore
.dockerignore /.dockerignore
Dockerfile /Dockerfile
README.md
ffdecks.json

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 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" 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 . . 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 import requests
from fftcg.opus import Opus from fftcg.opus import Opus