This repository has been archived on 2023-05-03. You can view files and clone it, but cannot push or open issues or pull requests.
ocp-wg-frontend/Dockerfile

17 lines
568 B
Docker
Raw Normal View History

2022-11-25 23:34:07 -05:00
FROM node:lts
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
2022-12-06 00:57:43 -05:00
RUN mkdir -p /home/node/app/.npm && chown -R node:node /home/node/app/.npm
2022-12-06 04:02:06 -05:00
RUN mkdir -p /home/node/.npm && chown -R node:node /home/node/.npm
RUN mkdir -p /.npm && chown -R node:node /.npm
RUN chown -R 1000650000:0 "/.npm"
RUN chown -R 1000650000:0 "/home/node/.npm"
RUN chown -R 1000650000:0 "/home/node/app/.npm"
WORKDIR /home/node/app
COPY --chown=node:node . .
2022-12-06 02:35:56 -05:00
RUN npm config set cache /home/node/app/.npm/
2022-12-06 00:16:06 -05:00
RUN npm install
2022-11-25 05:27:36 -05:00
EXPOSE 5000
USER node
CMD ["npm", "run", "dev"]
2022-11-25 05:27:36 -05:00