From 642ad72ff7534d49fc113c42e6b4694be347c2d1 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 24 Jul 2020 21:47:21 -0700 Subject: [PATCH] Move server to /app/code/server --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 912c890..764c6ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4 -RUN mkdir -p /app/code /app/pkg -WORKDIR /app/code +RUN mkdir -p /app/code/server /app/pkg +WORKDIR /app/code/server RUN apt-get -y update && apt -y install ffmpeg && rm -rf /var/cache/apt /var/lib/apt/lists @@ -22,13 +22,13 @@ RUN yarn install --production --pure-lockfile # RUN yarn install && npm run build # the json is created and managed by web ui. it overrides the yaml file (https://github.com/lorenwest/node-config/wiki/Configuration-Files) -RUN ln -sf /app/data/production.yaml /app/code/config/production.yaml && \ - ln -sf /app/data/local-production.json /app/code/config/local-production.json +RUN ln -sf /app/data/production.yaml /app/code/server/config/production.yaml && \ + ln -sf /app/data/local-production.json /app/code/server/config/local-production.json COPY production.yaml.example start.sh /app/pkg/ ENV NODE_ENV production -ENV NODE_CONFIG_DIR /app/code/config +ENV NODE_CONFIG_DIR /app/code/server/config CMD [ "/app/pkg/start.sh" ]