Skip to content

Commit

Permalink
Fix Docker stuff to work with CPAN
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Oct 29, 2024
1 parent b6e9545 commit 5d4db93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
11 changes: 4 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
FROM perl:latest
LABEL maintainer="dave@perlhacks.org"
LABEL maintainer="dave@davecross.co.uk"

COPY . /links
RUN cd /links && cpanm --installdeps .
RUN mkdir /linkdir
ENV PATH "$PATH:/links/bin"
ENV PERL5LIB /links/lib
WORKDIR /linksdir
RUN cpanm -n App::LinkSite@0.0.3
RUN mkdir /links
WORKDIR /links
6 changes: 3 additions & 3 deletions docker/build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

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

0 comments on commit 5d4db93

Please sign in to comment.