This commit is contained in:
Natan Keddem
2024-04-30 19:45:13 -04:00
commit 5e33556dcf
26 changed files with 2023 additions and 0 deletions

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM python:3.12.2-slim-bookworm
RUN echo "**** install runtime dependencies ****"
RUN apt update
ADD requirements.txt .
RUN python -m pip install --no-cache-dir -r requirements.txt
WORKDIR /app
ADD . /app
RUN mkdir -p /app/logs
RUN chmod 777 /app/resources/docker-entrypoint.sh
EXPOSE 8080
ENV PYTHONUNBUFFERED True
ENTRYPOINT ["/app/resources/docker-entrypoint.sh"]
CMD ["python", "main.py"]