Files
2022-05-31 15:46:40 +02:00

22 lines
494 B
Docker

FROM debian:testing-slim
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN apt update && \
DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends --no-install-suggests -y \
python3 \
python3-pip \
golang-go
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
COPY . /app
RUN mkdir /app/demos
EXPOSE 8080
ENV FLASK_APP=demo
CMD [ "python3", "-m" , "gunicorn", "demo:app", "-w 2", "-b 0.0.0.0:8080" ]