mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-06-01 19:40:03 +02:00
Work on reoccurring build errors (#123)
* bump golang-action to 1.7.0 * set action-gh-release to v1 * move away from distroless to alpine * bump alpine to latest to align with Dockerfile * making sure path is gopath is correct * separate cache directories per build-job * go mod tidy * update go dependencies
This commit is contained in:
@@ -19,13 +19,13 @@ RUN go install .
|
||||
|
||||
FROM docker.io/golang:latest AS wg_go_build
|
||||
WORKDIR /wg-go
|
||||
RUN git init && \
|
||||
git remote add origin https://git.zx2c4.com/wireguard-go && \
|
||||
git fetch && \
|
||||
git checkout tags/v0.0.20200320 -b build && \
|
||||
make
|
||||
RUN git init
|
||||
RUN git remote add origin https://git.zx2c4.com/wireguard-go
|
||||
RUN git fetch
|
||||
RUN git checkout tags/v0.0.20210424 -b build
|
||||
RUN make
|
||||
|
||||
FROM alpine:3.12
|
||||
FROM alpine:latest
|
||||
RUN apk add libc6-compat --no-cache
|
||||
COPY ./wg-go-ui.sh /
|
||||
COPY --from=build /go/bin/wireguard-ui /
|
||||
|
||||
Reference in New Issue
Block a user