e621_api_cloner/Dockerfile

10 lines
301 B
Docker
Raw Normal View History

2022-08-31 00:10:36 +00:00
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
2022-09-18 17:12:22 +00:00
ENV DBPATH=./e621.db
2022-08-31 00:10:36 +00:00
CMD ["hypercorn", "--access-log", "-", "-b", "0.0.0.0:1337", "e621_api_cloner:app"]