FreshPixels commited on
Commit
10739bd
·
verified ·
1 Parent(s): 3c0194d

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"
8
+
9
+ WORKDIR /app
10
+
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/prompts/history.json && \
18
+ echo '{}' > /app/prompts/build_modes.json
19
+
20
+ EXPOSE 7860
21
+ CMD ["python", "-m", "server"]