Skip to content

Commit

Permalink
Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force committed Feb 22, 2021
1 parent 9723dc9 commit 3c091e4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.git
/Dockerfile
/.idea
/.vscode
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:1.14-alpine AS build
WORKDIR /go/src/github.com/RoboCup-SSL/ssl-quality-inspector
COPY go.mod go.mod
COPY cmd cmd
COPY pkg pkg
RUN go install ./...

# Start fresh from a smaller image
FROM alpine:3.9
COPY --from=build /go/bin/ssl-quality-inspector /app/ssl-quality-inspector
ENTRYPOINT ["/app/ssl-quality-inspector"]
CMD []

0 comments on commit 3c091e4

Please sign in to comment.