19 lines
No EOL
217 B
Docker
19 lines
No EOL
217 B
Docker
FROM node:alpine AS build
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm install
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
FROM nginx:stable-alpine
|
|
|
|
COPY --from=build /build /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"] |