Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nbya
Project
Project
Details
Activity
Releases
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
haoyanbin
nbya
Commits
98b9c2b8
Commit
98b9c2b8
authored
Jan 15, 2022
by
zhengxiuming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Peizhi
parent
726bdbde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Dockerfile
Dockerfile
+3
-1
No files found.
Dockerfile
View file @
98b9c2b8
...
@@ -12,11 +12,13 @@ RUN go mod tidy
...
@@ -12,11 +12,13 @@ RUN go mod tidy
COPY
. .
COPY
. .
RUN
pwd
&&
ls
RUN
pwd
&&
ls
RUN
CGO_ENABLED
=
0
GOOS
=
linux go build
-ldflags
=
"-w -s"
-a
-installsuffix
cgo
-o
go-admin .
# RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -a -installsuffix cgo -o go-admin .
RUN
go
env
&&
go build
-o
go-admin .
FROM
alpine
FROM
alpine
COPY
--from=builder /go/release/go-admin /
COPY
--from=builder /go/release/go-admin /
COPY
--from=builder /go/release/config /config
COPY
--from=builder /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
COPY
--from=builder /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