ples work
All checks were successful
Publish Docker Images / docker (push) Successful in 40s

This commit is contained in:
Lee
2023-11-16 12:16:52 +00:00
parent 36d07fa8dd
commit 805e698668
13 changed files with 458 additions and 89 deletions

View File

@ -1,10 +1,7 @@
FROM fascinated/docker-images:node-pnpm-latest
WORKDIR /usr/src/app
# COPY package.json pnpm-lock.yaml ./
# RUN pnpm install
COPY . .
RUN pnpm run build
ENV PORT=3000
EXPOSE 3000
CMD [ "pnpm", "start" ]

View File

@ -6,7 +6,7 @@
"author": "fascinated",
"license": "MIT",
"scripts": {
"build": "tsc",
"build": "tsup src/index.ts --format cjs,esm --dts",
"start": "node dist/index.js",
"dev": "nodemon --exec ts-node src/index.ts"
},

View File

@ -1,10 +1,7 @@
FROM fascinated/docker-images:node-pnpm-latest
WORKDIR /usr/src/app
# COPY package.json pnpm-lock.yaml ./
# RUN pnpm install
COPY . .
RUN pnpm run build
ENV PORT=3000
EXPOSE 3000
CMD [ "pnpm", "start" ]

View File

@ -6,7 +6,7 @@
"author": "fascinated",
"license": "MIT",
"scripts": {
"build": "tsc",
"build": "tsup src/index.ts --format cjs,esm --dts",
"start": "node dist/index.js",
"dev": "nodemon --exec ts-node src/index.ts"
},