Sign inSign up

sitehost/sitehost-python

By sitehost

•Updated 10 months ago

Image
0

97

sitehost/sitehost-python repository overview

⁠SiteHost Cloud Container public image - Python

This is a version of the Python image from the SiteHost Cloud Container platform⁠ that you can use for local development.

⁠How to use this image

We recommend reading our Getting Started guide⁠ for more information on how to use this image.

⁠Image specific details

Cloud Containers usually follow a standardised directory structure, and have a set of ports that are exposed to access the services running within them.

⁠Exposing ports

To interact with your container, you can expose the ports that your container's services are listening on.

For this image, you can add the following to your Docker compose file to expose the ports:

ports: []

⁠Directory structure

Usually your Cloud Container image will depend on files mounted on the Cloud Container server, we've included all of these essential files in the image for ease of use.

For this image, you can add one or all of the following volumes to your Docker compose file:

volumes:
- ./config:/container/config
- ./logs:/container/logs
- ./application:/container/application
- ./crontabs:/cron

Depending on which volume you choose, you will want to copy the contents out of the container, onto your local machine. This will ensure you have any files that are required for your application to run.

docker cp {container_name}:/container/config ./config

Tag summary

Content type

Image

Digest

sha256:5b99b9717…

Size

1 GB

Last updated

10 months ago

docker pull sitehost/sitehost-python:5.0.1-noble