You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
310 B
Docker
15 lines
310 B
Docker
FROM golang:1.20
|
|
|
|
WORKDIR $GOPATH/src/locsi/api
|
|
|
|
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download && go mod verify
|
|
|
|
COPY . .
|
|
RUN go build -v ./...
|
|
|
|
RUN go install -v ./...
|
|
|
|
EXPOSE 8080
|
|
CMD ["api"] |