🎨优化
Some checks reported errors
continuous-integration/drone/tag Build was killed

This commit is contained in:
coward 2024-06-04 16:47:29 +08:00
parent 961cf4ca5b
commit e693f720cc

View File

@ -22,19 +22,24 @@ COPY --from=build-stage /front/web/ /build/web
ENV GO111MODULE=on
ENV GOPROXY=https://goproxy.cn,direct
RUN go build -ldflags="-s -w" -o app && upx -9 app
RUN go build -ldflags="-s -w" -o wgui && upx -9 wgui
RUN ls -lh && chmod +x ./app
RUN ls -lh && chmod +x ./wgui
FROM alpine
RUN addgroup -S wgui && \
adduser -S -D -G wgui wgui
ENV GIN_MODE=release
RUN apk --no-cache add ca-certificates wireguard-tools jq iptables
WORKDIR /app
RUN mkdir -p db
COPY --from=build /build/app /app
COPY --from=build --chown=wgui:wgui /build/wgui /app
COPY --from=build /build/template/* /app/template/
RUN chmod +x wgui
ENTRYPOINT ["./app"]