Files
tchivert 7bc1c71ce9
continuous-integration/drone Build is passing
first commit
2022-11-26 21:46:47 +01:00

14 lines
330 B
Docker

FROM python:3-slim-bullseye
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
COPY . /app
EXPOSE 8080
ENV FLASK_APP=calculator
CMD [ "python", "-m" , "gunicorn", "calculator:app", "-w 1", "-b 0.0.0.0:8080" ]