24 lines
498 B
Plaintext
24 lines
498 B
Plaintext
|
|
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
|
|
WORKDIR /app
|
|
|
|
EXPOSE 80
|
|
|
|
HEALTHCHECK --interval=5s --timeout=3s --start-period=10s --retries=3 \
|
|
CMD curl --fail http://localhost/status || exit 1
|
|
|
|
|
|
CMD ["python", "damination.py"]
|