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

15 lines
295 B
Bash

# Use the official Ubuntu image as the base image
FROM ubuntu:latest
# Set the working directory
WORKDIR /usr/src/app
# Copy the hello_world.sh script into the container
COPY hello_world.sh .
# Make the script executable
RUN chmod +x hello_world.sh
# Run the script
CMD ["./hello_world.sh"]