This repository was archived by the owner on Jan 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11FROM alpine:3.6
22
3+ ARG VERSION
4+
35RUN apk update && \
46 # install requirements
57 apk add --no-cache --virtual .build-deps \
@@ -13,7 +15,8 @@ RUN apk update && \
1315 # update certs
1416 update-ca-certificates && \
1517 # get latest stable version
16- VERSION=$(curl https://api.github.com/repos/sokil/statsd-http-proxy/releases/latest 2>/dev/null | grep tag_name | awk -F'"' '{print $4}') && \
18+ LATEST_VERSION=$(curl https://api.github.com/repos/sokil/statsd-http-proxy/releases/latest 2>/dev/null | grep tag_name | awk -F'"' '{print $4}') && \
19+ VERSION=${VERSION:-$LATEST_VERSION} && \
1720 # download source
1821 wget https://github.com/sokil/statsd-http-proxy/archive/$VERSION.tar.gz && \
1922 tar -zxvf ${VERSION}.tar.gz && \
Original file line number Diff line number Diff line change 11FROM ubuntu:17.10
22
3+ ARG VERSION
4+
35RUN \
46 # install requirements
57 apt-get update && \
68 APT_PACKAGES="ca-certificates make git wget curl golang" && \
79 apt-get install -y --no-install-recommends ${APT_PACKAGES} && \
810 # get latest stable version
9- VERSION=$(curl https://api.github.com/repos/sokil/statsd-http-proxy/releases/latest 2>/dev/null | grep tag_name | awk -F'"' '{print $4}') && \
11+ LATEST_VERSION=$(curl https://api.github.com/repos/sokil/statsd-http-proxy/releases/latest 2>/dev/null | grep tag_name | awk -F'"' '{print $4}') && \
12+ VERSION=${VERSION:-$LATEST_VERSION} && \
1013 # download, build source and install
1114 wget https://github.com/sokil/statsd-http-proxy/archive/${VERSION}.tar.gz && \
1215 tar -zxvf ${VERSION}.tar.gz && \
You can’t perform that action at this time.
0 commit comments