FreshPixels commited on
Commit
1bfff3b
·
verified ·
1 Parent(s): 2d60c50

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,6 +1,7 @@
1
  FROM python:3.11-slim
2
 
3
  RUN apt-get update && apt-get install -y curl git && rm -rf /var/lib/apt/lists/*
 
4
  RUN useradd -m -u 1000 user
5
  USER user
6
  ENV PATH="/home/user/.local/bin:$PATH"
@@ -10,10 +11,10 @@ WORKDIR /app
10
  COPY --chown=user:user requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- COPY --chown=user:user .
14
 
15
- RUN mkdir -p /app/skills /app/projects /app/downloads /app/prompts /app/build_modes
16
- RUN echo '{}' > /app/build_modes/build_modes.json
17
 
18
  EXPOSE 7860
19
  CMD ["python", "server.py"]
 
1
  FROM python:3.11-slim
2
 
3
  RUN apt-get update && apt-get install -y curl git && rm -rf /var/lib/apt/lists/*
4
+
5
  RUN useradd -m -u 1000 user
6
  USER user
7
  ENV PATH="/home/user/.local/bin:$PATH"
 
11
  COPY --chown=user:user requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
+ COPY --chown=user:user . .
15
 
16
+ RUN mkdir -p /app/skills /app/projects /app/downloads /app/prompts /app/build_modes && \
17
+ echo '{}' > /app/build_modes/build_modes.json
18
 
19
  EXPOSE 7860
20
  CMD ["python", "server.py"]