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
c7ad3895
Commit
c7ad3895
authored
Jun 11, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改docker file
parent
84f24370
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Dockerfile
Dockerfile
+7
-7
No files found.
Dockerfile
View file @
c7ad3895
FROM
golang:1.12-alpine as stage-build
FROM
golang:1.12-alpine as stage-build
LABEL
stage=stage-build
LABEL
stage=stage-build
WORKDIR
/go/src/
cocog
o
WORKDIR
/go/src/
kok
o
RUN
apk update
&&
apk add git
RUN
apk update
&&
apk add git
ARG
https_proxy
ARG
https_proxy
ARG
http_proxy
ARG
http_proxy
...
@@ -8,14 +8,14 @@ ENV https_proxy=$https_proxy
...
@@ -8,14 +8,14 @@ ENV https_proxy=$https_proxy
ENV
http_proxy=$http_proxy
ENV
http_proxy=$http_proxy
RUN
go get
-u
github.com/golang/dep/cmd/dep
RUN
go get
-u
github.com/golang/dep/cmd/dep
COPY
. .
COPY
. .
RUN
dep ensure
-vendor-only
&&
cd
cmd
&&
go build
coc
o.go
RUN
dep ensure
-vendor-only
&&
cd
cmd
&&
go build
kok
o.go
FROM
alpine
FROM
alpine
WORKDIR
/opt/coco/
WORKDIR
/opt/coco/
COPY
--from=stage-build /go/src/
cocogo/cmd/coc
o .
COPY
--from=stage-build /go/src/
koko/cmd/kok
o .
COPY
--from=stage-build /go/src/
cocog
o/cmd/locale .
COPY
--from=stage-build /go/src/
kok
o/cmd/locale .
COPY
--from=stage-build /go/src/
cocog
o/cmd/static .
COPY
--from=stage-build /go/src/
kok
o/cmd/static .
COPY
--from=stage-build /go/src/
cocog
o/cmd/templates .
COPY
--from=stage-build /go/src/
kok
o/cmd/templates .
RUN
echo
>
config.yml
RUN
echo
>
config.yml
EXPOSE
2222
EXPOSE
2222
CMD
["./
coc
o"]
CMD
["./
kok
o"]
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