Spaces:
Runtime error
Runtime error
Commit
·
61818f5
1
Parent(s):
c725c66
added DB_NAME env var
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
@@ -25,16 +25,22 @@ COPY ./server /server
|
|
25 |
COPY --from=client-builder /client/build /client/build
|
26 |
|
27 |
# permissions
|
28 |
-
RUN chmod
|
29 |
RUN touch /server/main.db;
|
30 |
-
RUN chmod
|
31 |
|
32 |
RUN ls -lh
|
33 |
|
34 |
|
|
|
35 |
|
36 |
# Install node_modules and run project
|
37 |
RUN npm install
|
38 |
RUN npm run dbinit
|
39 |
|
|
|
|
|
|
|
|
|
|
|
40 |
CMD npm run server
|
|
|
25 |
COPY --from=client-builder /client/build /client/build
|
26 |
|
27 |
# permissions
|
28 |
+
RUN chmod 777 /server;
|
29 |
RUN touch /server/main.db;
|
30 |
+
RUN chmod 777 /server/main.db;
|
31 |
|
32 |
RUN ls -lh
|
33 |
|
34 |
|
35 |
+
ENV DB_NAME="main.db"
|
36 |
|
37 |
# Install node_modules and run project
|
38 |
RUN npm install
|
39 |
RUN npm run dbinit
|
40 |
|
41 |
+
RUN chmod 777 /server;
|
42 |
+
RUN chmod 777 /server/main.db;
|
43 |
+
RUN ls -lh
|
44 |
+
|
45 |
+
|
46 |
CMD npm run server
|