This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/Dockerfile

20 lines
383 B
Docker
Raw Normal View History

2020-08-17 08:23:00 +02:00
FROM python:3.8.5-slim
RUN 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"]