mirror of
https://github.com/rjNemo/docker_examples
synced 2026-06-06 18:46:42 +00:00
14 lines
240 B
Docker
14 lines
240 B
Docker
FROM node:lts-alpine AS build
|
|
|
|
WORKDIR /app
|
|
COPY package.json .
|
|
COPY yarn.lock .
|
|
RUN yarn install
|
|
COPY . .
|
|
RUN yarn build
|
|
|
|
|
|
FROM nginx:latest
|
|
|
|
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=build /app/build/ /usr/share/nginx/html
|