We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfb22b6 commit 69b0213Copy full SHA for 69b0213
pill_mate/Dockerfile
@@ -7,8 +7,6 @@ RUN apk add --no-cache nginx nodejs npm
7
8
COPY . /app/
9
10
-RUN cd backend && npm install && npm run build
11
-
12
-RUN cd frontend && npm install && npm run build
+RUN bash build.sh
13
14
CMD [ "./run.sh" ]
pill_mate/build.sh
@@ -0,0 +1,25 @@
1
+#!/usr/bin/bash
2
+
3
+set -e
4
5
+source .env
6
+build_backend() {
+ pushd backend
+ npm install
+ npm run build
+ popd
+}
+build_frontend() {
15
+ if [ $DEV -eq 0 ]; then
16
+ pushd frontend
17
18
19
20
+ fi
21
22
23
+build_backend &
24
+build_frontend &
25
+wait
0 commit comments