add Dockerfile

close #3
This commit is contained in:
Luna 2022-08-30 21:10:36 -03:00
parent c889a14bac
commit 62a59975f6

8
Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM python:3.10-alpine
RUN apk add sqlite
ADD . ./e621_api_cloner
RUN pip3 install -Ur ./e621_api_cloner/requirements.txt
RUN touch ./e621_api_cloner/e621.db
EXPOSE 1337
WORKDIR /e621_api_cloner
CMD ["hypercorn", "--access-log", "-", "-b", "0.0.0.0:1337", "e621_api_cloner:app"]