12 lines
No EOL
200 B
Docker
12 lines
No EOL
200 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 docker-package.json /app/package.json
|
|
WORKDIR /app
|
|
CMD ["index.js"] |