blob: f7b9c5d2fff6987d8c1278541c96062dc8a48fd8 [file] [log] [blame]
simonf9d60942022-09-12 14:26:53 -04001FROM jami-daemon
simon3c67a472022-09-11 01:30:02 -04002
simonf9d60942022-09-12 14:26:53 -04003WORKDIR /web-client
4ENV LD_LIBRARY_PATH=/daemon/src/.libs
5ENV SECRET_KEY_BASE=test123
simon3c67a472022-09-11 01:30:02 -04006
simonf9d60942022-09-12 14:26:53 -04007# Install dependencies
simon3c67a472022-09-11 01:30:02 -04008RUN apt-get update && apt-get install -y \
9 lldb \
10 liblldb-dev
11
simonf9d60942022-09-12 14:26:53 -040012# Create a symlink to the daemon node app
13RUN ln -s /daemon/bin/nodejs/build/Release/jamid.node jamid.node
14
15COPY package*.json ./
simon949e02d2022-10-15 02:25:36 -040016COPY common/package*.json common/
simonf9d60942022-09-12 14:26:53 -040017COPY client/package*.json client/
simon949e02d2022-10-15 02:25:36 -040018COPY server/package*.json server/
simonf9d60942022-09-12 14:26:53 -040019
simon949e02d2022-10-15 02:25:36 -040020RUN npm ci --ignore-scripts
simonf9d60942022-09-12 14:26:53 -040021
22COPY . .
23
24RUN npm run build
simon3c67a472022-09-11 01:30:02 -040025
26CMD ["npm", "start"]