Skip to content

Instantly share code, notes, and snippets.

@samvarankashyap
Last active January 3, 2021 19:31
Show Gist options
  • Save samvarankashyap/6b5236517c9ec4457561ef6bf8549fff to your computer and use it in GitHub Desktop.
Save samvarankashyap/6b5236517c9ec4457561ef6bf8549fff to your computer and use it in GitHub Desktop.
# pull from quay.io registry
from quay.io/fedora/fedora:34
# Run a dnf update
RUN dnf -y update
# Install python3-pip
RUN dnf -y install python3-pip
# install Flask package using pip
RUN pip install Flask
# create a workdir App
WORKDIR /app
# copy the main.py in current directory
COPY ./main.py /app/main.py
# Run python as entrypoint
ENTRYPOINT [ "python" ]
# run the app main.py
CMD [ "/app/main.py" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment