go-webserver-template/Dockerfile
Nathan Woodburn 58fb7f7ebf
Some checks failed
Build Docker / BuildSite (push) Failing after 1m47s
fix: Copy the go files to the image to build
2024-06-20 21:03:47 +10:00

17 lines
228 B
Docker

# syntax=docker/dockerfile:1
FROM golang:1.19
# Set destination for COPY
WORKDIR /app
COPY main.go ./
COPY go.mod ./
COPY go.sum ./
COPY templates ./templates/
RUN go get
RUN go build main.go
EXPOSE 3000
# Run
CMD ["./main"]