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
2022-12-06 12:57:43 +07:00

15 lines
409 B
Docker

FROM node:lts
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
RUN mkdir -p /home/node/app/.npm && chown -R node:node /home/node/app/.npm
WORKDIR /home/node/.npm
RUN chown -R 1000:1000 "/home/node/.npm"
WORKDIR /.npm
RUN chown -R 1000660000:0 "/home/node/app/.npm"
WORKDIR /home/node/app
USER node
COPY --chown=node:node . .
RUN npm install
EXPOSE 5000
CMD ["npm", "run", "dev"]