15 lines
295 B
Bash
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"]
|