Skip to content

Commit

Permalink
feat: Docker & dokku support
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresalice committed May 16, 2021
1 parent e7f4c24 commit 3daa39e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1
FROM golang:1.16-alpine
WORKDIR /go/src/github.com/wheresalice/meeting-mood/
COPY . .
#RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -o meeting-mood .

FROM scratch
COPY --from=0 /go/src/github.com/wheresalice/meeting-mood/meeting-mood /
COPY Procfile /
CMD ["/meeting-mood"]
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: /meeting-mood

0 comments on commit 3daa39e

Please sign in to comment.