Move server to /app/code/server

This commit is contained in:
Girish Ramakrishnan 2020-07-24 21:47:21 -07:00
parent efe43a244b
commit 642ad72ff7

View file

@ -1,7 +1,7 @@
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4 FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
RUN mkdir -p /app/code /app/pkg RUN mkdir -p /app/code/server /app/pkg
WORKDIR /app/code WORKDIR /app/code/server
RUN apt-get -y update && apt -y install ffmpeg && rm -rf /var/cache/apt /var/lib/apt/lists 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 # 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) # 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 && \ RUN ln -sf /app/data/production.yaml /app/code/server/config/production.yaml && \
ln -sf /app/data/local-production.json /app/code/config/local-production.json ln -sf /app/data/local-production.json /app/code/server/config/local-production.json
COPY production.yaml.example start.sh /app/pkg/ COPY production.yaml.example start.sh /app/pkg/
ENV NODE_ENV production ENV NODE_ENV production
ENV NODE_CONFIG_DIR /app/code/config ENV NODE_CONFIG_DIR /app/code/server/config
CMD [ "/app/pkg/start.sh" ] CMD [ "/app/pkg/start.sh" ]