simon | f9d6094 | 2022-09-12 14:26:53 -0400 | [diff] [blame] | 1 | FROM jami-daemon |
simon | 3c67a47 | 2022-09-11 01:30:02 -0400 | [diff] [blame] | 2 | |
simon | f9d6094 | 2022-09-12 14:26:53 -0400 | [diff] [blame] | 3 | WORKDIR /web-client |
4 | ENV LD_LIBRARY_PATH=/daemon/src/.libs | ||||
5 | ENV SECRET_KEY_BASE=test123 | ||||
simon | 3c67a47 | 2022-09-11 01:30:02 -0400 | [diff] [blame] | 6 | |
simon | f9d6094 | 2022-09-12 14:26:53 -0400 | [diff] [blame] | 7 | # Install dependencies |
simon | 3c67a47 | 2022-09-11 01:30:02 -0400 | [diff] [blame] | 8 | RUN apt-get update && apt-get install -y \ |
9 | lldb \ | ||||
10 | liblldb-dev | ||||
11 | |||||
simon | f9d6094 | 2022-09-12 14:26:53 -0400 | [diff] [blame] | 12 | # Create a symlink to the daemon node app |
13 | RUN ln -s /daemon/bin/nodejs/build/Release/jamid.node jamid.node | ||||
14 | |||||
15 | COPY package*.json ./ | ||||
simon | 949e02d | 2022-10-15 02:25:36 -0400 | [diff] [blame] | 16 | COPY common/package*.json common/ |
simon | f9d6094 | 2022-09-12 14:26:53 -0400 | [diff] [blame] | 17 | COPY client/package*.json client/ |
simon | 949e02d | 2022-10-15 02:25:36 -0400 | [diff] [blame] | 18 | COPY server/package*.json server/ |
simon | f9d6094 | 2022-09-12 14:26:53 -0400 | [diff] [blame] | 19 | |
simon | 949e02d | 2022-10-15 02:25:36 -0400 | [diff] [blame] | 20 | RUN npm ci --ignore-scripts |
simon | f9d6094 | 2022-09-12 14:26:53 -0400 | [diff] [blame] | 21 | |
22 | COPY . . | ||||
23 | |||||
24 | RUN npm run build | ||||
simon | 3c67a47 | 2022-09-11 01:30:02 -0400 | [diff] [blame] | 25 | |
26 | CMD ["npm", "start"] |