13 lines
No EOL
217 B
Docker
13 lines
No EOL
217 B
Docker
FROM node:18 AS build-env
|
|
COPY . /app
|
|
WORKDIR /app
|
|
|
|
RUN yarn
|
|
RUN yarn build
|
|
|
|
FROM node:18
|
|
COPY --from=build-env /app/build /app
|
|
COPY package.json /app/package.json
|
|
WORKDIR /app
|
|
env NODE_ENV=production
|
|
CMD ["index.js"] |