Docker test

This commit is contained in:
s478841 2022-03-28 11:21:44 +02:00
parent eed56b87eb
commit 4af4543bb3
2 changed files with 18 additions and 0 deletions

14
Dockerfile Normal file
View 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
View File

@ -0,0 +1,4 @@
#!/bin/bash
while read line; do
figlet "$line"
done