Skip to content

Commit

Permalink
Merge pull request #2 from kukushkin/fix/dockerfile
Browse files Browse the repository at this point in the history
Fixed Dockerfile for reproducible builds
  • Loading branch information
kukushkin authored Dec 17, 2020
2 parents 8cb516e + bd31a9e commit 2903a99
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions Dockerfile
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"]

0 comments on commit 2903a99

Please sign in to comment.