구독자 알림 발송 개선

This commit is contained in:
2023-04-27 15:57:47 +09:00
parent c1ff253356
commit 97a9ad6c72
3 changed files with 46 additions and 21 deletions

23
dockerfile Normal file
View File

@ -0,0 +1,23 @@
FROM python:3.10.9-alpine3.17
RUN apk update && apk upgrade && apk add curl
RUN apk --no-cache add tzdata && \
cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime && \
echo "Asia/Seoul" > /etc/timezone \
apk del tzdata
COPY ./requirements.txt /
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app /app
WORKDIR /app
EXPOSE 80
HEALTHCHECK --interval=5s --timeout=3s --start-period=10s --retries=3 \
CMD curl --fail http://localhost/status || exit 1
CMD ["python", "main.py"]