Skip to content

Commit

Permalink
feat: docker file for gin server
Browse files Browse the repository at this point in the history
  • Loading branch information
RawanMostafa08 committed Sep 21, 2024
1 parent 6b606ba commit 6baa94c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile.gin
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:latest AS builder

WORKDIR /app

COPY . .

RUN go mod download

RUN go build -o ginserver ./cmd/ginserver/main.go

EXPOSE 8083

ENTRYPOINT [ "/app/ginserver" ]
File renamed without changes.

0 comments on commit 6baa94c

Please sign in to comment.