Use Bucker Client to connect to it
-
An
python
image is used -
The
pip
is updaded to latest version -
Change working directory to where the project's code will be reside
-
The project's python dependencies are copied to the project's home directory and are installed
-
The project's source code is copied inside the image
-
An entrypoint using python command and a cmd command that runs the expected main script of the project are executed
-
Select a
python
image version that matches the one used to develop the project (replacelatest
) -
Change the environmental variable named
BUCKET_HOST
for CORS support
Build image
docker build -t bucket:latest .
Run container
docker run -idt -p 8000:8000 --restart=unless-stopped --name bucket bucket:latest