GoTomato/Dockerfile
2024-10-19 17:13:15 +02:00

12 lines
186 B
Docker

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" ]