Dockerfile Fix
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user