better-argo-tunnels/archive/webdav/Dockerfile

16 lines
430 B
Docker

# Build context must be the repository root (see archive/docker-compose-*.yml).
FROM golang:1.24-alpine AS build
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o /webdav ./archive/cmd-webdav
FROM alpine:3.20
RUN apk add --no-cache ca-certificates
COPY archive/webdav/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY --from=build /webdav /webdav
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]