Skip to content

Commit

Permalink
Created dockerfile and docker ingore
Browse files Browse the repository at this point in the history
  • Loading branch information
burkaydurdu committed Mar 2, 2022
1 parent 2c86326 commit 87a69fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM golang:1.17.2-alpine as builder
WORKDIR /go/src/app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .

FROM scratch
COPY --from=builder /go/src/app/app /app
ENTRYPOINT ["/app"]

0 comments on commit 87a69fb

Please sign in to comment.