go-webserver-template/Dockerfile

13 lines
186 B
Docker
Raw Normal View History

2024-06-17 15:53:53 +10:00
# syntax=docker/dockerfile:1
FROM golang:1.19
# Set destination for COPY
WORKDIR /app
COPY main.go ./
COPY templates ./templates/
RUN go build main.go
EXPOSE 3000
# Run
CMD ["./main"]