first dockerfile

This commit is contained in:
Isaac Johnson 2026-05-18 15:35:24 +00:00
parent 1b5242781b
commit e0b43af151
3 changed files with 10 additions and 2 deletions

View File

@ -1,2 +1,5 @@
[safe] [safe]
directory = /home/coder directory = /home/coder
[user]
name = Isaac Johnson
email = isaac.johnson@gmail.com

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM perl:5
WORKDIR /usr/src/app
RUN cpanm HTTP::Server::Simple
COPY server.pl .
EXPOSE 8080
CMD ["perl", "./server.pl"]

View File

@ -38,5 +38,4 @@ sub resp_hello {
} }
} }
# start the server on port 8080 # start the server on port 8080
my $pid = MyWebServer->new(8080)->background(); MyWebServer->new(8080)->run();
print "Use 'kill $pid' to stop server.\n";