mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
44eb513f05
* update docker image building
17 lines
366 B
Plaintext
17 lines
366 B
Plaintext
FROM golang:1.18-alpine3.15 AS building
|
|
|
|
COPY . /building
|
|
WORKDIR /building
|
|
|
|
RUN apk --no-cache add \
|
|
git \
|
|
&& export GO111MODULE=on \
|
|
&& env CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o ./bin/frps ./cmd/frps
|
|
|
|
FROM alpine:3.15
|
|
LABEL maintainer="i@muir.fun"
|
|
|
|
COPY --from=building /building/bin/frps /usr/bin/frps
|
|
|
|
ENTRYPOINT ["/usr/bin/frps"]
|
|
CMD ["-h"] |