Dolphin: A comprehensive tutorial on getting started with Docker!
docker pull prakhar1989/docker-curriculum:latest
docker run -d --name docker-curriculum -p 5000:5000 --restart always prakhar1989/docker-curriculum:latest
podman run -d --name docker-curriculum -p 5000:5000 --restart always prakhar1989/docker-curriculum:latest
skopeo inspect docker://docker.io/prakhar1989/docker-curriculum:latest
oras pull prakhar1989/docker-curriculum:latest
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"]