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
M
modlastfm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
stella-irc
modlastfm
Commits
00ed2b0e
Commit
00ed2b0e
authored
Oct 27, 2018
by
Mike Jones
🌶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Dockerfile
parent
d796ee3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
Dockerfile
Dockerfile
+24
-0
No files found.
Dockerfile
0 → 100644
View file @
00ed2b0e
FROM
golang:1.11.1-alpine3.7 as builder
LABEL
maintainer="Mike Jones"
RUN
mkdir
-p
/go/src/git.netsplit.uk/stella-irc/modlastfm
COPY
. /go/src/git.netsplit.uk/stella-irc/modlastfm
RUN
apk update
&&
apk upgrade
&&
\
apk add
--no-cache
git gcc musl-dev
WORKDIR
/go/src/git.netsplit.uk/stella-irc/modlastfm
RUN
go get ./...
&&
\
CGO_ENABLED
=
0
GOOS
=
linux
GOARCH
=
amd64
\
go build
-o
/opt/modlastfm cmd/modlastfm/main.go
&&
\
apk del
--purge
git gcc musl-dev
&&
\
rm
-rf
/go/bin /go/pkg /var/cache/apk/
*
RUN
chmod
+x /opt/modlastfm
FROM
scratch
COPY
--from=builder /opt /opt
ENTRYPOINT
["/opt/modlastfm"]
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