-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from tigerteufel85/boggy-3/docker-hub-images
Updated Dockerfile and documentation for docker hub
- Loading branch information
Showing
3 changed files
with
9 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
FROM golang:latest as builder | ||
FROM golang:1.11-alpine as builder | ||
ENV GO111MODULE=on | ||
WORKDIR /boggy/ | ||
COPY . ./ | ||
RUN make dep \ | ||
&& CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod=readonly -a -o /app . | ||
|
||
FROM debian:stable-slim | ||
RUN apt-get update -y && \ | ||
apt-get install ca-certificates netcat strace wget -y | ||
RUN update-ca-certificates | ||
RUN mkdir -p images | ||
RUN apk add git | ||
RUN CGO_ENABLED=0 go build -o /app boggy.go | ||
|
||
FROM alpine:latest as alpine | ||
RUN apk add --no-cache git ca-certificates tzdata | ||
RUN mkdir -p config | ||
COPY --from=builder app . | ||
|
||
CMD ["./app"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters