Fixed permission bug in the Dockerfile

This commit is contained in:
Mathias Wagner
2024-05-18 23:01:39 +02:00
parent 242ad3bbdf
commit 7042f7b8a5

View File

@@ -5,20 +5,15 @@ ENV NODE_ENV=production
WORKDIR /myspeed
COPY --chown=node:node ./client ./client
COPY --chown=node:node ./server ./server
COPY --chown=node:node ./package.json ./package.json
COPY ./client ./client
COPY ./server ./server
COPY ./package.json ./package.json
RUN npm install
RUN cd client && npm install --force
RUN npm run build
RUN mv /myspeed/client/build /myspeed
RUN rm -rf /myspeed/client
RUN mkdir -p /myspeed/data
RUN chown -R node:node /myspeed
USER node
VOLUME ["/myspeed/data"]