Spaces:
Sleeping
Sleeping
hoshoo21
commited on
Commit
·
419dfa1
1
Parent(s):
6def4c8
fixing docker file
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
FROM python:3.12.7
|
| 2 |
|
| 3 |
# Step 2: Set working directory in the container
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
# Step 3: Copy your app files into the container
|
|
@@ -8,7 +13,7 @@ COPY . /app
|
|
| 8 |
|
| 9 |
# Step 4: Install dependencies
|
| 10 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
-
|
| 12 |
# Step 5: Expose a port (optional, but useful)
|
| 13 |
EXPOSE 7860
|
| 14 |
|
|
|
|
| 1 |
FROM python:3.12.7
|
| 2 |
|
| 3 |
# Step 2: Set working directory in the container
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
RUN useradd -m -u 1000 user
|
| 7 |
+
USER user
|
| 8 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
# Step 3: Copy your app files into the container
|
|
|
|
| 13 |
|
| 14 |
# Step 4: Install dependencies
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
+
RUN mkdir -p uploads
|
| 17 |
# Step 5: Expose a port (optional, but useful)
|
| 18 |
EXPOSE 7860
|
| 19 |
|