Commit 5bf97d8f authored by 谢宇轩's avatar 谢宇轩 😅

添加dockerfile的支持

parent 6fd48804
FROM golang:1.16.3-alpine3.13 as build
RUN set -ex \
&& go env -w GO111MODULE=on \
&& go env -w GOPROXY=https://goproxy.cn,direct
ENV CGO_ENABLED=0
WORKDIR /app
COPY . /app
RUN go build -o logtransfer ./
FROM alpine as production
WORKDIR /app
COPY --from=build /app /app
ENTRYPOINT ["/app/logtransfer"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment