Skip to content

Commit

Permalink
Add stuff to build a docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Aug 26, 2023
1 parent 6aa3d52 commit f1dcda7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM perl:latest

RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y build-essential && \
apt-get install -y cpanminus libtidy-dev libxml++2.6-dev libhtml-tidy-perl && \
cpanm App::[email protected]

3 changes: 3 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# perl-app-aphra-docker

Dockerfile to create an image with Perl and App::Aphra installed
6 changes: 6 additions & 0 deletions docker/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

ver=`perl -nE '/\@v([\d\.]+)/ and print $1 and exit' Dockerfile`
echo Building version $ver
docker build -t davorg/perl-app-aphra:latest -t davorg/perl-app-aphra:app-aphra_$ver .
docker push -a docker.io/davorg/perl-app-aphra

0 comments on commit f1dcda7

Please sign in to comment.