File tree Expand file tree Collapse file tree 7 files changed +26
-17
lines changed
Expand file tree Collapse file tree 7 files changed +26
-17
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ RUN addgroup -Sg 40023 waam && \
1616 adduser -Su 40023 -G waam waam && \
1717 install -d -o waam -g waam /usr/src/app
1818
19-
2019# Subsequent commands run relative to this directory.
2120WORKDIR /usr/src/app
2221
@@ -25,8 +24,8 @@ RUN chown -Rh waam:waam /home/node
2524USER waam
2625
2726# Install Yarn
28- RUN npm i -g corepack
29-
27+ RUN npm i -g corepack
28+
3029# Install server dependencies.
3130COPY --chown=waam package.json ./
3231COPY --chown=waam yarn.lock ./
@@ -49,3 +48,5 @@ ENTRYPOINT ["npm"]
4948
5049# The default command runs the server.
5150CMD ["run" , "server" ]
51+
52+ ENV PATH=/usr/src/app/bin:$PATH
Original file line number Diff line number Diff line change 1+ #! /bin/sh -e
Original file line number Diff line number Diff line change 1+ #! /bin/sh -e
2+
3+ wget localhost:3002 -O - 2> /dev/null | grep -q ' West African'
Original file line number Diff line number Diff line change 1+ ---
2+
3+ services :
4+ app :
5+ build : !reset
6+ image : " ${DOCKER_APP_IMAGE}"
Original file line number Diff line number Diff line change 1- version : ' 3.7'
1+ ---
2+
23services :
3- node :
4- container_name : node
5- build :
6- context : .
7- dockerfile : Dockerfile
4+ app :
5+ build : .
86 restart : always
97 ports :
108 - 3002:3002
119 secrets :
1210 - DATABASE_URL
1311
1412 db :
15- image : mariadb:10.5.8
16- container_name : db
13+ image : mariadb:10
1714 restart : always
1815 environment :
19- MYSQL_ROOT_PASSWORD : root
20- MYSQL_USER : amms2
21- MYSQL_PASSWORD : amms2
22- MYSQL_DATABASE : amms2
16+ - MYSQL_DATABASE=amms2
17+ - MYSQL_PASSWORD= amms2
18+ - MYSQL_ROOT_PASSWORD=root
19+ - MYSQL_USER= amms2
2320 volumes :
2421 - db-volume:/var/lib/mysql
2522 - ./data/test-data.sql:/docker-entrypoint-initdb.d/test-data.sql
2623 depends_on :
27- - node
24+ - app
2825
2926networks :
3027 default :
3128 driver : bridge
29+
3230secrets :
3331 DATABASE_URL :
3432 file : secrets/DATABASE_URL
3533
3634volumes :
37- db-volume:
35+ db-volume :
You can’t perform that action at this time.
0 commit comments