first commit
This commit is contained in:
23
app/dockerfile
Normal file
23
app/dockerfile
Normal 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
|
||||
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"]
|
||||
Reference in New Issue
Block a user