21 lines
310 B
Docker
21 lines
310 B
Docker
FROM node:16-alpine as build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json .
|
|
COPY package-lock.json .
|
|
|
|
RUN npm install
|
|
|
|
COPY ./src ./src
|
|
COPY ./public ./public
|
|
|
|
RUN npm run build
|
|
|
|
COPY . .
|
|
|
|
FROM nginx:stable-alpine
|
|
COPY --from=build /app/build /usr/share/nginx/html
|
|
COPY nginx.default.conf /etc/nginx/conf.d/default.conf
|
|
|