boxes-api/Dockerfile

19 lines
178 B
Docker

FROM golang:latest
WORKDIR /app
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY . .
ENV CGO_ENABLED=1
RUN go build -o boxes-api .
EXPOSE 8080
CMD ["./boxes-api"]