Sign inSign up

ymca5ankit/pythondemo

By ymca5ankit

Updated over 5 years ago

sample python application image

Image
0

844

ymca5ankit/pythondemo repository overview

It's a sample python application docker image.

use below command to run it on port 7989
docker run -p 7987:5000 ymca5ankit/pythondemo

hit below url localhost:7987

below is docker file
FROM python:3
#set a directory for the app
WORKDIR /usr/src/app
#copy all the files to the container
COPY . .
#install dependencies
RUN pip install --no-cache-dir -r requirements.txt
#tell the port number the container should expose
EXPOSE 5000
#run the command
CMD ["python", "./app.py"]

Tag summary

Content type

Image

Digest

Size

327.8 MB

Last updated

over 5 years ago

docker pull ymca5ankit/pythondemo