-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stuff to build a docker container
- Loading branch information
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |