fix staging web image publish
This commit is contained in:
@@ -21,16 +21,18 @@ COPY references /app/references
|
||||
COPY scripts /app/scripts
|
||||
COPY skills /app/skills
|
||||
|
||||
RUN npm run build && npm prune --omit=dev
|
||||
RUN npm run build
|
||||
|
||||
FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/node:22-alpine
|
||||
|
||||
WORKDIR /app/frontend
|
||||
COPY --from=build /app /app
|
||||
COPY --from=build /app/frontend/.next/standalone /app
|
||||
COPY --from=build /app/frontend/.next/static /app/frontend/.next/static
|
||||
COPY --from=build /app/frontend/public /app/frontend/public
|
||||
|
||||
ARG NEXT_PUBLIC_SUPABASE_URL
|
||||
ARG NEXT_PUBLIC_SUPABASE_ANON_KEY
|
||||
ENV NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL} \
|
||||
NEXT_PUBLIC_SUPABASE_ANON_KEY=${NEXT_PUBLIC_SUPABASE_ANON_KEY}
|
||||
ENV NODE_ENV=production
|
||||
CMD ["sh", "-c", "exec npm start -- --hostname 0.0.0.0 --port \"${PORT:-3000}\""]
|
||||
CMD ["node", "server.js"]
|
||||
|
||||
Reference in New Issue
Block a user