generated from nathanwoodburn/go-webserver-template
Nathan Woodburn
903f602119
All checks were successful
Build Docker / BuildSite (push) Successful in 1m7s
21 lines
324 B
Docker
21 lines
324 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM golang:1.21
|
|
|
|
# Set destination for COPY
|
|
WORKDIR /app
|
|
|
|
# Install knot-dnsutils
|
|
RUN apt-get update && apt-get install -y knot-dnsutils
|
|
|
|
COPY main.go ./
|
|
COPY go.mod ./
|
|
COPY go.sum ./
|
|
COPY templates ./templates/
|
|
COPY test.sh ./
|
|
RUN go get
|
|
RUN go build main.go
|
|
EXPOSE 3000
|
|
|
|
# Run
|
|
CMD ["./main"]
|