Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#base image
FROM golang:1.22.5

#working directory

WORKDIR /app


#Copy go.mod
COPY go.mod ./

#Download dependencies
RUN go mod download

#code

COPY . .

#libraries

RUN go build -o main .

#Run

CMD ["./main"]