docker-curriculum Docker & Self-Hosted Deployment

GitHub

Dolphin: A comprehensive tutorial on getting started with Docker!

6,072 stars SCSS 1 file ยท ~4,598 tokens #aws#cloud-computing#containers#docker#microservices#tutorials
1. Pull Image (DOCKERHUB) docker pull prakhar1989/docker-curriculum:latest
2. Docker Run (1-Click Launch) docker run -d --name docker-curriculum -p 5000:5000 --restart always prakhar1989/docker-curriculum:latest
3. Podman Run podman run -d --name docker-curriculum -p 5000:5000 --restart always prakhar1989/docker-curriculum:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/prakhar1989/docker-curriculum:latest
5. ORAS Pull (OCI Artifact) oras pull prakhar1989/docker-curriculum:latest
flask-app/Dockerfile
FROM python:3.12-slim

# set a directory for the app
WORKDIR /usr/src/app

# copy requirements file and install dependencies (for optimal layer caching)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# copy all remaining files to the container
COPY . .

# tell the port number the container should expose
EXPOSE 5000

# run the command
CMD ["python", "./app.py"]