dockerize!
This commit is contained in:
parent
7618059c5d
commit
0ed1c11866
12
Dockerfile
Normal file
12
Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue