Updated docker file to parse variant

This commit is contained in:
Swarup Sengupta
2022-06-20 10:36:02 +05:30
parent 0d4f91910c
commit b2432da543
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ ENV DIR=/go/src/github.com/Psiphon-Labs/psiphon-tunnel-core \
GO111MODULE=off \
CGO_ENABLED=0
SHELL ["/bin/bash", "-c"]
RUN TARGET_PALTFORMS=${TARGETS:-"$BUILDOS/$BUILDARCH"}; \
RUN TARGET_PALTFORMS=${TARGETS:-"$BUILDOS/$BUILDARCH"} && \
mkdir -p ${DIR} && \
curl -sL https://github.com/Psiphon-Labs/psiphon-tunnel-core/archive/refs/tags/v${VERSION}.tar.gz | \
tar xz -C ${DIR} --strip-components=1 && \
@@ -30,7 +30,7 @@ RUN TARGET_PALTFORMS=${TARGETS:-"$BUILDOS/$BUILDARCH"};
done)
FROM alpine:3.16.0
RUN mkdir -p /psiphon /config
RUN mkdir -p /psiphon /config
ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT