Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
avarabyeu committed Apr 4, 2019
1 parent 9aadc91 commit 5571f28
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM alpine:3.9

RUN apk add --update --no-cache \
ca-certificates curl

## Take version from Docker Hub during build
ARG dockerTag

RUN echo $dockerTag | awk -F"v" '{ print $2 }' > version
RUN cat ./version

# Install Hugo
RUN version=$(cat version) && curl -L >gorp.tar.gz https://github.com/avarabyeu/goRP/releases/download/$dockerTag/goRP_${version}_linux_amd64.tar.gz \
&& tar -xzvf gorp.tar.gz -C /usr/bin \
&& rm gorp.tar.gz

ENTRYPOINT ["gorp"]
2 changes: 2 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
docker build --build-arg dockerTag=$DOCKER_TAG -f $DOCKERFILE_PATH -t $IMAGE_NAME .

0 comments on commit 5571f28

Please sign in to comment.