Skip to content

Commit

Permalink
docker: use subdomain as default in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
grishy committed Aug 8, 2023
1 parent a517b02 commit 7d18678
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1

# STAGE 1: building the executable
FROM docker.io/golang:1.20.6-alpine3.18 as builder
FROM docker.io/golang:1.20.7-alpine3.18 as builder
WORKDIR /build

COPY go.mod go.sum ./
Expand All @@ -15,5 +15,8 @@ RUN go build -ldflags="-w -s" -o /go-avahi-cname
# STAGE 2: build the container to run
FROM scratch
COPY --from=builder /go-avahi-cname /go-avahi-cname

EXPOSE 5353/udp

ENTRYPOINT ["/go-avahi-cname"]
CMD [ "subdomain" ]

0 comments on commit 7d18678

Please sign in to comment.