init
This commit is contained in:
commit
acb5259c32
13
javascript.Dockerfile
Normal file
13
javascript.Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
FROM node:18 as build
|
||||||
|
|
||||||
|
WORKDIR /build/app
|
||||||
|
COPY package.json /build/app/
|
||||||
|
COPY src /build/app/src/
|
||||||
|
RUN corepack enable
|
||||||
|
RUN corepack prepare pnpm@latest --activate
|
||||||
|
RUN pnpm install
|
||||||
|
|
||||||
|
FROM node:18 as run
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build /build/app/ /app/
|
||||||
|
CMD ["node", "dist"]
|
14
typescript.Dockerfile
Normal file
14
typescript.Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
FROM node:18 as build
|
||||||
|
|
||||||
|
WORKDIR /build/app
|
||||||
|
COPY package.json tsconfig.json /build/app/
|
||||||
|
COPY src /build/app/src/
|
||||||
|
RUN corepack enable
|
||||||
|
RUN corepack prepare pnpm@latest --activate
|
||||||
|
RUN pnpm install
|
||||||
|
RUN pnpm run build
|
||||||
|
|
||||||
|
FROM node:18 as run
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build /build/app/ /app/
|
||||||
|
CMD ["node", "dist"]
|
Loading…
Reference in a new issue