16 lines
288 B
Docker
16 lines
288 B
Docker
FROM node:18 AS build
|
|
|
|
WORKDIR /usr
|
|
COPY package.json ./
|
|
COPY yarn.lock ./
|
|
RUN yarn install --frozen-lockfile
|
|
COPY . ./
|
|
RUN yarn build
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=build /usr/dist /usr/share/nginx/html
|
|
#COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
EXPOSE 80
|
|
CMD ["nginx","-g","daemon off;"]
|