From 0ed1c11866661a16110d93c84018f910d3827fe3 Mon Sep 17 00:00:00 2001 From: Lea Date: Thu, 6 Apr 2023 13:28:20 +0200 Subject: [PATCH] dockerize! --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6fcd0c8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +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"] \ No newline at end of file