healthcheck/Dockerfile

12 lines
294 B
Docker
Raw Normal View History

2023-04-06 11:28:20 +00:00
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"]