You've already forked calculator
14 lines
330 B
Docker
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" ] |