feat: add Dockerfile for GoTomato

🤖
This commit is contained in:
Sebastian Mark 2024-10-19 16:50:05 +02:00
parent b7a79acdb0
commit 90f80cc685

12
Dockerfile Normal file
View 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" ]