Last active
January 3, 2021 19:31
-
-
Save samvarankashyap/6b5236517c9ec4457561ef6bf8549fff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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