Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
# Use the official Python 3.9 image
|
2 |
FROM nikolaik/python-nodejs:python3.11-nodejs21
|
3 |
|
|
|
|
|
4 |
# Copy the current directory contents into the container
|
5 |
COPY . /app
|
6 |
|
|
|
7 |
# Go into the front directory
|
8 |
WORKDIR /app/front
|
9 |
|
@@ -14,9 +17,11 @@ RUN npm install
|
|
14 |
|
15 |
RUN npm run build
|
16 |
|
|
|
17 |
# Go back to the root directory
|
18 |
WORKDIR /app
|
19 |
|
|
|
20 |
# Go into the api directory
|
21 |
WORKDIR /app/back
|
22 |
|
|
|
1 |
# Use the official Python 3.9 image
|
2 |
FROM nikolaik/python-nodejs:python3.11-nodejs21
|
3 |
|
4 |
+
RUN chmod -R 777 /app/*
|
5 |
+
|
6 |
# Copy the current directory contents into the container
|
7 |
COPY . /app
|
8 |
|
9 |
+
|
10 |
# Go into the front directory
|
11 |
WORKDIR /app/front
|
12 |
|
|
|
17 |
|
18 |
RUN npm run build
|
19 |
|
20 |
+
|
21 |
# Go back to the root directory
|
22 |
WORKDIR /app
|
23 |
|
24 |
+
|
25 |
# Go into the api directory
|
26 |
WORKDIR /app/back
|
27 |
|