dockerize!

This commit is contained in:
Lea 2023-04-06 13:28:20 +02:00
parent 7618059c5d
commit 0ed1c11866
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

12
Dockerfile Normal file
View file

@ -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"]