diff --git a/Dockerfile b/Dockerfile index f6e71cc..6e3a262 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM perl:5.34.0 WORKDIR /opt COPY cgi-bin/ ./cgi-bin/ COPY public/ ./public/ +COPY t/ ./t/ COPY templates/ ./templates/ COPY cpanfile . COPY .mmCreds.xml . @@ -19,6 +20,9 @@ RUN apt-get -y install fortune-mod ruby RUN cpanm --installdeps . RUN gem install cgi +# Test it +RUN prove -l -v + # Finish setting up the environment ENV MOJO_REVERSE_PROXY=1 ENV SERVER_ADMIN="swaggboi@slackware.uk" diff --git a/README.md b/README.md index e3c3b9e..02570a3 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,7 @@ The successor to my homepage. Hold on to your butts. docker build -t www-swagg . -### Run it locally - - docker run -p 3000:3000 www-swagg:latest - -Pull up [http://localhost:3000](http://localhost:3000) and poke around -**TODO:** Should create automated tests for this +Tests are performed during the build process ## Tagging/Pushing