go-webserver-template/Dockerfile
Nathan Woodburn 7732ea1462
Some checks failed
Build Docker / BuildSite (push) Failing after 32s
fix: Add go get to dockerfile
2024-06-20 20:48:52 +10:00

15 lines
198 B
Docker

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