Docker-Container-Demo/Dockerfile
Holger Mürk 0a6159b428 the code
2023-02-15 19:54:04 +02:00

13 lines
198 B
Docker

FROM golang:1.19-alpine
WORKDIR /usr/src/demoserver
COPY go.mod go.sum ./
RUN go mod download
COPY cmd/main.go ./cmd/main.go
RUN go build -o /usr/bin/server cmd/main.go
CMD ["/usr/bin/server"]