go-webserver-template/Dockerfile
Nathan Woodburn 897f59e1d2
All checks were successful
Build Docker / BuildSite (push) Successful in 2m37s
fix: Update the version on the dockerfile to use the correct version
2024-06-20 21:18:56 +10:00

17 lines
228 B
Docker

# syntax=docker/dockerfile:1
FROM golang:1.21
# 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"]