frp/dockerfiles/Dockerfile-for-frpc
蓝云Reyes 44eb513f05
Update docker image build file (#2892)
* update docker image building
2022-04-29 01:12:07 +08:00

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/frpc ./cmd/frpc
FROM alpine:3.15
LABEL maintainer="i@muir.fun"
COPY --from=building /building/bin/frpc /usr/bin/frpc
ENTRYPOINT ["/usr/bin/frpc"]
CMD ["-h"]