ozon-task/Dockerfile
2024-06-25 02:34:10 +03:00

12 lines
173 B
Docker

FROM golang:1.22.4
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /ozon-task cmd/server.go
CMD ["/ozon-task"]