~crocmagnon/blog

ref: f6d6d7b850df58a2f5ce8e8555f9b0328462224d blog/Dockerfile -rw-r--r-- 486 bytes
f6d6d7b8Gabriel Augendre Add task to notify commenters once their comment has been moderated. 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.8.5-slim

RUN apt-get update \
    && apt-get install -y curl \
    && echo "Europe/Paris" > /etc/timezone \
    && mkdir /app && mkdir /db

WORKDIR /app
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY manage.py ./
COPY articles ./articles/
COPY blog ./blog/
COPY docker ./docker/

ENV SECRET_KEY "changeme"
ENV DEBUG "false"
ENV HOST ""
ENV DB_BASE_DIR "/db"

HEALTHCHECK --start-period=30s CMD curl -f http://localhost:8000

CMD ["/app/docker/run.sh"]