Bookholder-API/Dockerfile

15 lines
151 B
Docker

FROM golang:1.22
WORKDIR /app
COPY go.mod ./
RUN go mod download
COPY . .
RUN go build -o /bookholder-api
EXPOSE 8080
CMD [ "/bookholder-api" ]