mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-24 02:39:19 -05:00
Revert "refactor: update Dockerfile to set NPM registry as a build argument and create entrypoint script"
This reverts commit 4b13c007f2.
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -2,8 +2,7 @@ FROM python:3.12-slim-bookworm
|
|||||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
||||||
|
|
||||||
FROM node:22-alpine
|
FROM node:22-alpine
|
||||||
ARG NPM_REGISTRY=https://registry.npmjs.org
|
RUN npm config set registry https://registry.npmmirror.com
|
||||||
ENV NPM_REGISTRY=${NPM_REGISTRY}
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -16,11 +15,4 @@ RUN pnpm build
|
|||||||
|
|
||||||
EXPOSE 3000
|
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"]
|
CMD ["pnpm", "start"]
|
||||||
|
|||||||
Reference in New Issue
Block a user