Skip to content

Commit fa64c05

Browse files
authored
ci: fixed docker build for all platforms (#6)
2 parents 1f9c244 + bfbbaac commit fa64c05

File tree

5 files changed

+8489
-16858
lines changed

5 files changed

+8489
-16858
lines changed

Diff for: .github/workflows/lint.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
node-version: 20
2424

2525
- name: Install dependencies
26-
run: npm ci
26+
run: yarn install
2727

2828
- name: ESLint
29-
run: npm run lint
29+
run: yarn run lint
3030

3131
- name: Types
32-
run: npm run typecheck
32+
run: yarn run typecheck

Diff for: Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ FROM node:18-alpine as build
33
WORKDIR /app
44

55
COPY package.json /app
6-
COPY package-lock.json /app
6+
COPY yarn.lock /app
77

8-
RUN npm ci
8+
RUN yarn install
99

1010
COPY . /app
1111

12-
RUN npm run build
12+
RUN yarn run build
1313

1414
# There are build issues on the Node 20 version. Jump to 20 when the bug will be fixed.
1515
# https://github.com/nodejs/docker-node/issues/1946

0 commit comments

Comments
 (0)