feat: add Dockerfile for GoTomato
🤖
This commit is contained in:
parent
b7a79acdb0
commit
9b70aee47e
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 go build -v -o /GoTomato
|
||||
|
||||
EXPOSE 8080
|
||||
CMD [ "/GoTomato" ]
|
Loading…
Reference in a new issue