16 lines
283 B
Docker
16 lines
283 B
Docker
FROM node:18-alpine AS build
|
|
|
|
WORKDIR /app
|
|
COPY package*.json /app/
|
|
|
|
RUN yarn
|
|
COPY . /app
|
|
|
|
RUN yarn build:prod
|
|
|
|
FROM nginx:alpine
|
|
COPY dynamic-env.json /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
COPY --from=build /app/dist/BookStore /usr/share/nginx/html
|