Docker test
This commit is contained in:
parent
eed56b87eb
commit
4af4543bb3
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
# Inherit from some existing image
|
||||
FROM ubuntu:latest
|
||||
|
||||
# Install required dependencies
|
||||
RUN apt update && apt install -y figlet
|
||||
|
||||
# Create the /app directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy scripts to the catalog
|
||||
COPY ./figlet-loop.sh ./
|
||||
|
||||
# Run the copied script
|
||||
CMD ./figlet-loop.sh
|
4
figlet-loop.sh
Normal file
4
figlet-loop.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
while read line; do
|
||||
figlet "$line"
|
||||
done
|
Loading…
Reference in New Issue
Block a user