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

15 lines
409 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-05 23:20:44 -05:00
WORKDIR /home/node/.npm
RUN chown -R 1000:1000 "/home/node/.npm"
2022-12-06 00:30:33 -05:00
WORKDIR /.npm
2022-12-06 00:57:43 -05:00
RUN chown -R 1000660000:0 "/home/node/app/.npm"
WORKDIR /home/node/app
USER node
COPY --chown=node:node . .
2022-12-06 00:16:06 -05:00
RUN npm install
2022-11-25 05:27:36 -05:00
EXPOSE 5000
CMD ["npm", "run", "dev"]
2022-11-25 05:27:36 -05:00