first commit
This commit is contained in:
14
Dockerfile.python-alpine
Normal file
14
Dockerfile.python-alpine
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user