From 27d48266eee1fa71c676591042a5651a3161ecbe Mon Sep 17 00:00:00 2001 From: h202-wq Date: Thu, 9 Jul 2026 11:02:02 -0400 Subject: [PATCH] Dockerfile Fix --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1cb1007..b845dc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,8 @@ FROM node:22-alpine AS frontend ARG APP_VERSION WORKDIR /build/frontend COPY frontend/package.json frontend/yarn.lock ./ -RUN yarn install --frozen-lockfile +# The postinstall hook copies the altcha widget to ../static/public/static. +RUN mkdir -p /build/static/public/static && yarn install --frozen-lockfile COPY frontend/ ./ COPY --from=email-builder /build/email-builder/dist ./public/static/email-builder ENV VUE_APP_VERSION=${APP_VERSION} @@ -33,6 +34,7 @@ RUN go mod download RUN go install github.com/knadh/stuffbin/...@latest COPY . . COPY --from=frontend /build/frontend/dist ./frontend/dist +COPY --from=frontend /build/static/public/static/altcha.umd.js ./static/public/static/altcha.umd.js RUN CGO_ENABLED=0 go build -o eaglecast \ -ldflags="-s -w -X 'main.buildString=${APP_VERSION} (docker)' -X 'main.versionString=${APP_VERSION}'" \ ./cmd