-
Notifications
You must be signed in to change notification settings - Fork 147
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 #2 from kukushkin/fix/dockerfile
Fixed Dockerfile for reproducible builds
- Loading branch information
Showing
1 changed file
with
12 additions
and
14 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,19 +1,17 @@ | ||
#FROM golang:alpine as builder | ||
# | ||
#WORKDIR /go/src/github.com/p4tin/goaws | ||
# | ||
#RUN apk add --update --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ git | ||
#RUN go get github.com/golang/dep/cmd/dep | ||
# | ||
#COPY Gopkg.lock Gopkg.toml app ./ | ||
#RUN dep ensure | ||
#COPY . . | ||
# | ||
#RUN go build -o goaws_linux_amd64 app/cmd/goaws.goc | ||
# build image | ||
FROM golang:alpine as build | ||
|
||
WORKDIR /go/src/github.com/p4tin/goaws | ||
|
||
COPY . . | ||
RUN go build -o goaws app/cmd/goaws.go | ||
|
||
# release image | ||
FROM alpine | ||
|
||
EXPOSE 4100 | ||
COPY --from=build /go/src/github.com/p4tin/goaws/goaws /goaws | ||
|
||
COPY goaws / | ||
COPY app/conf/goaws.yaml /conf/ | ||
|
||
EXPOSE 4100 | ||
ENTRYPOINT ["/goaws"] |