mirror of
https://github.com/andrewkdinh/death-code.git
synced 2024-11-24 05:04:33 -08:00
17 lines
506 B
Docker
17 lines
506 B
Docker
# docker build -t death-code .
|
|
# docker run -d --restart unless-stopped --name death-code -p 2020:80 death-code
|
|
# curl 127.0.0.1:2020
|
|
|
|
FROM tiangolo/uwsgi-nginx-flask:python3.8
|
|
LABEL maintainer="Andrew Dinh <death-code@andrewkdinh.com>"
|
|
LABEL version="0.3.0"
|
|
|
|
EXPOSE 80
|
|
|
|
ADD ./requirements.txt /app/requirements.txt
|
|
RUN python3 -m pip install --upgrade pip && python3 -m pip install -r /app/requirements.txt
|
|
|
|
ADD ./templates /app/templates/
|
|
ADD ./main.py /app/main.py
|
|
|
|
HEALTHCHECK CMD curl http://localhost |