Commit 182b4f89 authored by ibuler's avatar ibuler

[Update] 修改dockerfile

parent d2e789de
...@@ -4,8 +4,10 @@ WORKDIR /opt/coco ...@@ -4,8 +4,10 @@ WORKDIR /opt/coco
ARG GOPROXY ARG GOPROXY
ENV GOPROXY=$GOPROXY ENV GOPROXY=$GOPROXY
ENV GO111MODULE=on ENV GO111MODULE=on
COPY . . COPY go.mod go.sum ./
RUN apk update && apk add git
RUN go mod download RUN go mod download
COPY . .
RUN cd cmd && go build koko.go RUN cd cmd && go build koko.go
FROM alpine FROM alpine
......
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