Sign inSign up

jacknorthrup/flask_docker

By jacknorthrup

•Updated over 3 years ago

Image
0

112

jacknorthrup/flask_docker repository overview

⁠start by pulling the python image

FROM python:3.9-slim-buster

RUN apt-get update &&
apt-get install -y python3 python3-pip gcc build-essential nano locate git wget curl unzip python3-dev libpq-dev libffi-dev libssl-dev &&
apt-get clean

⁠copy the requirements file into the image

COPY ./requirements.txt /app/requirements.txt

⁠switch working directory

WORKDIR /app

⁠install the dependencies and packages in the requirements file

RUN pip3 install -r requirements.txt

⁠copy every content from the local file to the image

COPY . /app

⁠configure the container to run in an executed manner

ENTRYPOINT [ "python" ]

CMD ["app.py" ]

docker run --name flaskapp -p 5000:5000 -d jacknorthrup/flask_docker

Tag summary

Content type

Image

Digest

sha256:11086db12…

Size

2 GB

Last updated

over 3 years ago

docker pull jacknorthrup/flask_docker