Created
February 10, 2022 19:34
-
-
Save kfrz/206e819163a23ad7b202f9ffb7aeb39d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Consider the following dockerfile | |
FROM python:3 | |
RUN mkdir /app | |
COPY . /app | |
RUN pip install flask | |
EXPOSE 3000 | |
CMD [ "python", "./yourscript.py" ] | |
# How many layers does this docker image have? | |
# If a change is made to yourscript.py which layers get invalidated? | |
# How can you optimize this docker file for development? Assume the scripts in the current directory change often |
Author
kfrz
commented
Feb 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment