QuestionQ333
Application Deployment and SecurityDrag the steps from the left into the order shown on the right to build and run a customized Python Docker image. Not every option will be used.
Drag & Drop
Create a Dockerfile that contains the text:
FROM python:3.7.2
COPY ./my_app.py /app
Create a Dockerfile that contains the text:
IMPORT python:3.7.2
COPY ./my_app.py /app
$ docker run -dit --name my-running-app -p 8080:80 my-app
$ docker compile -t my-app .
$ docker build -t my-app .
step 1
step 2
step 3
Community Discussion