15 lines
198 B
Docker
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"]
|