Pull out index.html

This commit is contained in:
Nils O. Selåsdal
2026-05-29 15:50:09 +02:00
parent 87d416e829
commit 82d04ad7cd
4 changed files with 208 additions and 203 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ WORKDIR /build
COPY go.mod ./
RUN go mod download
COPY main.go ./
COPY index.html.tmpl main.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o beam .
@@ -16,7 +16,7 @@ RUN adduser -D -u 1000 beam
USER beam
WORKDIR /app
COPY --from=builder /build/beam .
COPY --from=builder /build/index.html.tmpl /build/beam .
EXPOSE 8080