2024-06-22 16:55:03 +10:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
FROM golang:1.21
|
|
|
|
|
|
|
|
# Set destination for COPY
|
|
|
|
WORKDIR /app
|
|
|
|
|
2024-06-22 19:06:14 +10:00
|
|
|
# Install knot-dnsutils
|
|
|
|
RUN apt-get update && apt-get install -y knot-dnsutils
|
|
|
|
|
2024-06-22 16:55:03 +10:00
|
|
|
COPY main.go ./
|
|
|
|
COPY go.mod ./
|
|
|
|
COPY go.sum ./
|
|
|
|
COPY templates ./templates/
|
2024-06-22 19:09:27 +10:00
|
|
|
COPY test.sh ./
|
2024-06-22 16:55:03 +10:00
|
|
|
RUN go get
|
|
|
|
RUN go build main.go
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
# Run
|
|
|
|
CMD ["./main"]
|