Yield generated for 4331c5c1-baf2-415c-9fa7-7b2b6963c0a9
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1023 B

Dockerfile tp

Write dockerfile for each folder.

Package curl

My computer dosen't have curl installed, and I want a docker to run curl on my laptop (as shown with python in the previous tp).

I want to be able to do this :

cd curl
docker image build -t my-curl .

And then, run it.

You have to do is to write the Dockerfile.

I want to use it like that :

docker container run --rm my-curl:latest https://example.com

Package my bash script

I want the script in the folder bash to be run within a ubuntu container.

You must write the dockerfile.

Package a python app

I want my python app to be packaged in a docker container using python 2.7.

You have to do is to write the Dockerfile.

I want to run it like that :

docker run -d -p 5000:5000 my-hello-world

And I want it to be pushed on docker hub.

Tips :

To install dependancies, you must run pip install -r requirements.txt in the container.

Don't forget to copy requirements.txt too !