Answers for "dockerize flask app"

1

dockerize flask app

FROM ubuntu:16.04

MAINTANER Your Name "[email protected]"

RUN apt-get update -y && \
    apt-get install -y python-pip python-dev

# We copy just the requirements.txt first to leverage Docker cache
COPY ./requirements.txt /app/requirements.txt

WORKDIR /app

RUN pip install -r requirements.txt

COPY . /app

ENTRYPOINT [ "python" ]

CMD [ "app.py" ]
Posted by: Guest on April-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language