15 lines
318 B
Docker
15 lines
318 B
Docker
FROM node:latest as builder
|
|
|
|
WORKDIR /app
|
|
ENV PATH /app/node_modules/.bin:$PATH
|
|
COPY package.json ./
|
|
COPY package-lock.json ./
|
|
RUN npm ci --silent --force
|
|
RUN npm audit fix
|
|
COPY . ./
|
|
RUN npm run build
|
|
|
|
FROM nginx:latest
|
|
COPY --from=builder /app/build /usr/share/nginx/html
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|