Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
koko
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
koko
Commits
f17b070e
Commit
f17b070e
authored
Aug 05, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改docker file
parent
9ab4ea69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Dockerfile
Dockerfile
+5
-1
No files found.
Dockerfile
View file @
f17b070e
...
@@ -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
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment