Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Syed Areeb Hussain
servmgmt-ss22
Commits
dfa41f9b
Commit
dfa41f9b
authored
May 07, 2022
by
Syed Areeb Hussain
Browse files
Upload New File
parent
52bd7e99
Changes
1
Hide whitespace changes
Inline
Side-by-side
mini server/Dockerfile
0 → 100644
View file @
dfa41f9b
FROM
golang:1.18
as
builder
WORKDIR
/usr/app
COPY
. .
# build the executable
RUN
go build
-o
miniserver
FROM
gcr.io/distroless/base
COPY
--from=builder /usr/app/ /usr/app/
WORKDIR
/usr/app
EXPOSE
80
CMD
["./miniserver"]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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