Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -17,7 +17,7 @@ COPY frontend ./frontend
|
|
17 |
RUN cd frontend && npm run build
|
18 |
|
19 |
# Stage 2: Set up the Node.js backend
|
20 |
-
FROM node:
|
21 |
|
22 |
# Set the working directory
|
23 |
WORKDIR /app
|
@@ -33,7 +33,8 @@ COPY --from=build /app/frontend/dist ./backend/public
|
|
33 |
COPY backend ./backend
|
34 |
|
35 |
# Ensure database folder exists and has correct permissions
|
36 |
-
RUN mkdir -p /app/backend/database && chmod -R 777 /app/backend/database
|
|
|
37 |
|
38 |
# Expose the backend's port
|
39 |
EXPOSE 7860
|
|
|
17 |
RUN cd frontend && npm run build
|
18 |
|
19 |
# Stage 2: Set up the Node.js backend
|
20 |
+
FROM node:18
|
21 |
|
22 |
# Set the working directory
|
23 |
WORKDIR /app
|
|
|
33 |
COPY backend ./backend
|
34 |
|
35 |
# Ensure database folder exists and has correct permissions
|
36 |
+
RUN mkdir -p /app/backend/database && chmod -R 777 /app/backend/database \
|
37 |
+
&& touch /app/backend/server.log && chmod 777 /app/backend/server.log
|
38 |
|
39 |
# Expose the backend's port
|
40 |
EXPOSE 7860
|