Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Zhou Yaochen
goActuator
Commits
89800e6e
Commit
89800e6e
authored
Oct 27, 2021
by
Zhou Yaochen
Browse files
add dockerfile and makefile
parent
fac13668
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
DockerFile
DockerFile
+9
-0
makefile
makefile
+4
-0
No files found.
DockerFile
0 → 100644
View file @
89800e6e
FROM
golang:1.16 AS compile
COPY
src/ /src
RUN
cd
/src/main
&&
go build
FROM
debian:stable-slim
COPY
--from=compile /src/main/main /
WORKDIR
/
CMD
["/main"]
makefile
0 → 100644
View file @
89800e6e
IMAGE_NAME
:=
hub.cstcloud.cn/scalebox/goactuator
build
:
docker build
--network
=
host
-f
DockerFile
-t
$(IMAGE_NAME)
.
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