From 5eadcc6bb76bf6cbef54bcfd1a3f2b2b7b914d7d Mon Sep 17 00:00:00 2001 From: Vittorio Palmisano Date: Wed, 28 Apr 2021 18:28:31 +0200 Subject: [PATCH] fixed docker image file and docs --- compose/README.md | 2 +- compose/edumeet/Dockerfile | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/compose/README.md b/compose/README.md index 50a809aa..1383f43d 100644 --- a/compose/README.md +++ b/compose/README.md @@ -28,5 +28,5 @@ also for the websocket connection. Rebuild the web application bundle: ```sh -docker-compose exec edumeet sh -c "cd app && yarn && yarn build" +docker-compose exec -u $UID edumeet sh -c "cd app && yarn && yarn build" ``` diff --git a/compose/edumeet/Dockerfile b/compose/edumeet/Dockerfile index 8744c1d1..d7b52c3b 100644 --- a/compose/edumeet/Dockerfile +++ b/compose/edumeet/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts-buster-slim +FROM node:14-buster-slim RUN apt-get update && \ apt-get install -y git build-essential python pkg-config libssl-dev && \ apt-get clean @@ -6,5 +6,7 @@ WORKDIR /edumeet ENV DEBUG=edumeet*,mediasoup* RUN npm install -g nodemon && \ npm install -g concurrently -CMD cd app && yarn && yarn build -CMD concurrently --names "server,app" "cd server && yarn && yarn dev" "cd app && yarn && yarn start" \ No newline at end of file +RUN touch /.yarnrc && mkdir -p /.yarn /.cache/yarn && chmod 775 /.yarn /.yarnrc /.cache/yarn +CMD concurrently --names "server,app" \ + "cd server && yarn && yarn dev" \ + "cd app && yarn && yarn build && yarn start"