feat: add Dockerfile for GoTomato
🤖
This commit is contained in:
parent
b7a79acdb0
commit
90f80cc685
1 changed files with 12 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
FROM golang:1.23
|
||||||
|
|
||||||
|
WORKDIR /opt/GoTomato
|
||||||
|
|
||||||
|
COPY go.mod go.sum ./
|
||||||
|
RUN go mod download && go mod verify
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
RUN CGO_ENABLED=0 go build -v -o /GoTomato
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
CMD [ "/GoTomato" ]
|
Loading…
Reference in a new issue