Skip to content

Commit

Permalink
Merge pull request #2 from natron-io/basic_implementation
Browse files Browse the repository at this point in the history
add Dockerfile
  • Loading branch information
janlauber authored Jan 19, 2022
2 parents c9dd4fb + 3f30c4b commit fe06660
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# syntax=docker/dockerfile:1
FROM golang:1.17
WORKDIR /go/src/github.com/bluestoneag/post-handler/
RUN go get -d -v golang.org/x/net/html
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .

FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=0 /go/src/github.com/bluestoneag/post-handler/app ./
EXPOSE 8000
CMD ["./app"]

0 comments on commit fe06660

Please sign in to comment.