21 lines
551 B
Docker
21 lines
551 B
Docker
# start by pulling the python image
|
|
FROM python:3
|
|
|
|
# install uwsgi
|
|
RUN apt install -y gcc && pip3 install uwsgi
|
|
|
|
# copy the requirements file into the image
|
|
COPY ./requirements.txt /tmp/requirements.txt
|
|
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt
|
|
|
|
# switch working directory
|
|
WORKDIR /app
|
|
|
|
# copy every content from the local file to the image
|
|
COPY ./app.py /app
|
|
COPY ./templates/index.html /app/templates/index.html
|
|
COPY ./static/favicon.ico /app/static/favicon.ico
|
|
COPY ./app.ini /app
|
|
COPY ./wsgi.py /app
|
|
|
|
CMD ["uwsgi","--ini","app.ini"] |