17 lines
275 B
Docker
17 lines
275 B
Docker
FROM node:18.13.0-alpine AS build
|
|
|
|
WORKDIR /app
|
|
|
|
RUN npm cache clean --force
|
|
|
|
COPY . .
|
|
RUN npm install
|
|
|
|
RUN npm run build
|
|
|
|
FROM nginx:mainline-alpine AS ngi
|
|
COPY --from=build /app/dist/mqtt_creator /usr/share/nginx
|
|
COPY /nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|