13 lines
295 B
Docker
13 lines
295 B
Docker
FROM node:18 as build
|
|
|
|
WORKDIR /build/app
|
|
COPY package.json tsconfig.json /build/app/
|
|
COPY src /build/app/src/
|
|
RUN npm install --frozen-lockfile
|
|
RUN yarn build
|
|
|
|
FROM node:18 as run
|
|
WORKDIR /app
|
|
COPY --from=build /build/app/ /app/
|
|
CMD ["node", "--experimental-specifier-resolution=node", "dist"]
|