forum-app/frontend/Dockerfile

14 lines
210 B
Docker
Raw Permalink Normal View History

2024-04-09 21:37:24 +00:00
FROM node:alpine
2024-04-06 21:50:21 +00:00
WORKDIR /app
2024-04-09 21:37:24 +00:00
COPY ./app/package.json /app/package.json
RUN npm install
COPY ./app /app
RUN npm run build
RUN npm install -g serve
2024-04-06 21:50:21 +00:00
2024-04-09 21:37:24 +00:00
EXPOSE 3000
CMD ["serve", "-s", "--no-clipboard", "build"]