From e39ed5cc42a7139b55f87ed8cad7c6fa784188c0 Mon Sep 17 00:00:00 2001 From: samanhappy Date: Sat, 5 Apr 2025 16:58:29 +0800 Subject: [PATCH] Revert "refactor: update Dockerfile to set NPM registry as a build argument and create entrypoint script" This reverts commit 4b13c007f25e03a35945bfb41d97d1950f4f3cd8. --- Dockerfile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1486b9d..b1af91b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,7 @@ FROM python:3.12-slim-bookworm COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ FROM node:22-alpine -ARG NPM_REGISTRY=https://registry.npmjs.org -ENV NPM_REGISTRY=${NPM_REGISTRY} +RUN npm config set registry https://registry.npmmirror.com WORKDIR /app @@ -16,11 +15,4 @@ RUN pnpm build EXPOSE 3000 -# Create entrypoint script -RUN echo '#!/bin/sh\n\ -npm config set registry ${NPM_REGISTRY}\n\ -exec "$@"' > /entrypoint.sh && \ - chmod +x /entrypoint.sh - -ENTRYPOINT ["/entrypoint.sh"] CMD ["pnpm", "start"]