Skip to content

Commit b34fae5

Browse files
authored
node 24 & Typescript native
* fix: simplify Dockerfile by removing multi-stage build and updating node version * fix: update package.json for version bump and module type changes * feat: add Docker publish workflow with Buildx and cosign integration
1 parent 1c7940e commit b34fae5

File tree

12 files changed

+837
-645
lines changed

12 files changed

+837
-645
lines changed

.github/workflows/docker-image.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

Dockerfile

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1-
# typescript compile
2-
FROM node:14.10.1-alpine as tsc
1+
FROM node:24.0.2-slim
32

43
WORKDIR /app
54

6-
COPY /*.json ./
7-
COPY src src
5+
COPY /*.json /*.yaml /.env ./
6+
COPY src ./src
87

9-
RUN npm ci
10-
RUN npm run build
11-
12-
# nodejs runtime build
13-
FROM node:14.10.1-alpine
14-
15-
WORKDIR /app
16-
17-
COPY --from=tsc /app/dist ./dist
18-
COPY /*.json /.env ./
19-
20-
RUN npm ci --production
8+
RUN npx pnpm install --production --frozen-lockfile
219

2210
CMD npm start

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,17 @@ NODE_DEBUG=ERROR,WARN (Activate Nodejs debugger)
2020

2121
# Local development environment
2222
```
23-
> npm i
23+
> pnpm i
2424
> code .
2525
[press F5 to run debugger] or
2626
> npm run debug
2727
```
2828

29-
# BUILD tsc
30-
> npm run build
29+
# Run
30+
```bash
31+
# Run in local
32+
> npm start
33+
```
3134

3235
# BUILD docker
3336
> docker build .

0 commit comments

Comments
 (0)