Dockerfile 186 B

1234567891011121314
  1. FROM node:18-slim AS frontend
  2. WORKDIR /usr/src/app/frontend
  3. COPY package.json .
  4. COPY package-lock.json .
  5. RUN npm install
  6. COPY . .
  7. RUN npm run build
  8. EXPOSE 3000
  9. CMD ["npm", "start"]