Jofthomas commited on
Commit
e257142
·
verified ·
1 Parent(s): d74e5a2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -11
Dockerfile CHANGED
@@ -5,16 +5,6 @@ WORKDIR /app
5
  # Create a non-root user and group
6
  RUN groupadd -r appgroup && useradd -r -g appgroup -d /app -s /sbin/nologin -c "Docker image user" appuser
7
 
8
- # Install Node.js and npm for npx
9
- RUN apt-get update && \
10
- apt-get install -y curl && \
11
- curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
12
- apt-get install -y nodejs && \
13
- rm -rf /var/lib/apt/lists/*
14
-
15
- # Configure npm to use a cache directory writable by appuser
16
- ENV NPM_CONFIG_CACHE /app/.npm
17
-
18
  # Copy requirements file first to leverage Docker cache
19
  COPY --chown=appuser:appgroup requirements.txt .
20
 
@@ -39,4 +29,4 @@ COPY --chown=appuser:appgroup server.py .
39
  EXPOSE 7860
40
 
41
  # Command to run the server with python directly
42
- CMD ["mcp", "dev", "server.py"]
 
5
  # Create a non-root user and group
6
  RUN groupadd -r appgroup && useradd -r -g appgroup -d /app -s /sbin/nologin -c "Docker image user" appuser
7
 
 
 
 
 
 
 
 
 
 
 
8
  # Copy requirements file first to leverage Docker cache
9
  COPY --chown=appuser:appgroup requirements.txt .
10
 
 
29
  EXPOSE 7860
30
 
31
  # Command to run the server with python directly
32
+ CMD ["python", "server.py"]