Skip to content

Commit

Permalink
use npiperelay binary (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakai135 authored Jan 21, 2022
1 parent 91f8dcf commit 7ecebc4
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions distro/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
FROM alpine:3.15.0 AS vpnkit
RUN apk add --no-cache p7zip && \
apk list --installed
WORKDIR /files
RUN wget https://github.com/sakai135/vpnkit/releases/download/v0.5.0-20211026/vpnkit-tap-vsockd && \
wget https://github.com/sakai135/vpnkit/releases/download/v0.5.0-20211026/vpnkit.exe && \
wget https://raw.githubusercontent.com/sakai135/vpnkit/v0.5.0-20211026/LICENSE && \
chmod +x vpnkit-tap-vsockd && \
find . -type f -exec sha256sum {} \;

FROM golang:1.17.4-alpine3.15 AS npiperelay
RUN apk add --no-cache git && \
FROM alpine:3.15.0 AS npiperelay
RUN apk add --no-cache p7zip && \
apk list --installed
WORKDIR /app
RUN mkdir /files && \
git -c advice.detachedHead=false clone --branch v0.1.0 --depth 1 https://github.com/jstarks/npiperelay.git . && \
[[ "4997d3bf5f2e512608b39b51f37412206758051b" = "$(git rev-parse --verify HEAD)" ]] && \
GOOS=windows go build -ldflags '-s -w' -o /files/npiperelay.exe . && \
cp ./LICENSE /files/ && \
cd /files && \
WORKDIR /files
RUN wget https://github.com/jstarks/npiperelay/releases/download/v0.1.0/npiperelay_windows_amd64.zip && \
7z e npiperelay_windows_amd64.zip npiperelay.exe LICENSE && \
rm npiperelay_windows_amd64.zip && \
find . -type f -exec sha256sum {} \;

FROM alpine:3.15.0
Expand Down

0 comments on commit 7ecebc4

Please sign in to comment.