Files
hello-world-in-docker/Dockerfile.python-alpine
2024-07-27 22:24:07 +02:00

15 lines
309 B
Docker

# Use the official Python image as the base image
FROM alpine:latest
# Install python
RUN apk add --no-cache python3
# Set the working directory
WORKDIR /usr/src/app
# Copy the hello_world.py script into the container
COPY hello_world-alpine.py .
# Run the script
CMD ["python3", "hello_world-alpine.py"]