Unverified Commit f391da32 authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #69 from jumpserver/dev

Dev
parents 6d4e69b2 2cf24933
...@@ -4,7 +4,9 @@ WORKDIR /opt/coco ...@@ -4,7 +4,9 @@ WORKDIR /opt/coco
ARG GOPROXY ARG GOPROXY
ENV GOPROXY=$GOPROXY ENV GOPROXY=$GOPROXY
ENV GO111MODULE=on ENV GO111MODULE=on
RUN apk update && apk add git RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
&& apk update
&& apk add git
COPY go.mod go.sum ./ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
COPY . . COPY . .
...@@ -19,6 +21,8 @@ COPY --from=stage-build /opt/coco/cmd/templates/ templates ...@@ -19,6 +21,8 @@ COPY --from=stage-build /opt/coco/cmd/templates/ templates
COPY cmd/config_example.yml . COPY cmd/config_example.yml .
COPY entrypoint.sh . COPY entrypoint.sh .
RUN chmod 755 ./entrypoint.sh \ RUN chmod 755 ./entrypoint.sh \
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
&& apk update \
&& apk add -U tzdata \ && apk add -U tzdata \
&& apk add curl \ && apk add curl \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
......
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