Spaces:
Running
Running
Commit
·
82abdb6
1
Parent(s):
2af4768
Fix Dockerfile working directory and permissions setup to ensure proper access to application files
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y \
|
|
16 |
&& rm -rf /var/lib/apt/lists/*
|
17 |
|
18 |
# Set working directory
|
19 |
-
WORKDIR /
|
20 |
|
21 |
# Install Python dependencies (cached if requirements.txt doesn't change)
|
22 |
COPY requirements.txt .
|
@@ -26,7 +26,7 @@ RUN pip install --upgrade pip && pip install -r requirements.txt
|
|
26 |
COPY . .
|
27 |
|
28 |
# Set permissions (do this *after* copying files)
|
29 |
-
RUN chmod -R 777 /
|
30 |
|
31 |
# Setup SSH known_hosts (only runs if above layers change)
|
32 |
RUN mkdir -p /root/.ssh && \
|
|
|
16 |
&& rm -rf /var/lib/apt/lists/*
|
17 |
|
18 |
# Set working directory
|
19 |
+
WORKDIR /app
|
20 |
|
21 |
# Install Python dependencies (cached if requirements.txt doesn't change)
|
22 |
COPY requirements.txt .
|
|
|
26 |
COPY . .
|
27 |
|
28 |
# Set permissions (do this *after* copying files)
|
29 |
+
RUN chmod -R 777 /app
|
30 |
|
31 |
# Setup SSH known_hosts (only runs if above layers change)
|
32 |
RUN mkdir -p /root/.ssh && \
|