Update Dockerfile
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
@@ -13,13 +13,10 @@ RUN npm install express axios fs path progress-stream
|
|
13 |
# Copy all project files to the container
|
14 |
COPY . .
|
15 |
|
16 |
-
# Create required directories
|
17 |
-
RUN mkdir -p /app/downloads
|
18 |
|
19 |
-
#
|
20 |
-
RUN chmod -R 755 /app
|
21 |
-
|
22 |
-
# Expose port 3000 for Express API
|
23 |
EXPOSE 7860
|
24 |
|
25 |
# Start the Node.js server
|
|
|
13 |
# Copy all project files to the container
|
14 |
COPY . .
|
15 |
|
16 |
+
# Create required directories and set permissions
|
17 |
+
RUN mkdir -p /app/downloads && chmod -R 777 /app/downloads
|
18 |
|
19 |
+
# Expose port 7860 for Express API
|
|
|
|
|
|
|
20 |
EXPOSE 7860
|
21 |
|
22 |
# Start the Node.js server
|