15 lines
309 B
Docker
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"]
|