Files
IOT_application/fuse-starter-v20.0.0/Dockerfile
2025-10-16 21:07:02 +05:30

14 lines
436 B
Docker

FROM node:16-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install --legacy-peer-deps --prefer-offline
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist/fuse-angular /usr/share/nginx/html
RUN echo 'server { listen 80; location / { root /usr/share/nginx/html; index index.html; try_files $uri $uri/ /index.html; } }' > /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]