Skip to content

Commit a764bcc

Browse files
committed
Upgrade dependency.
1 parent 36ce1da commit a764bcc

File tree

9 files changed

+12559
-29622
lines changed

9 files changed

+12559
-29622
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v4
2121
with:
22-
node-version: 12.x
22+
node-version: 22.x
2323
- run: npm ci
2424
- run: npm run build --if-present

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Build and Deploy
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
- name: Build and push Docker images
1414
uses: docker/[email protected]
1515
with:

Dockerfile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
FROM node:12-alpine as build
1+
FROM node:22-alpine AS build
22

33
WORKDIR /app
44

5-
COPY . /app
5+
# Copy package files first for better caching
6+
COPY package.json package-lock.json* ./
67

7-
RUN npm install --silent
8-
RUN npm install [email protected] -g --silent
8+
# Install dependencies
9+
RUN npm ci --silent --only=production=false
10+
11+
# Copy the rest of the application
12+
COPY . .
13+
14+
# Build the application
915
RUN npm run build
1016

11-
FROM nginx:1.16-alpine
17+
FROM nginx:1.25-alpine
1218

1319
COPY --from=build /app/build /usr/share/nginx/html
1420
RUN rm /etc/nginx/conf.d/default.conf

craco.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
const webpack = require('webpack');
2+
3+
module.exports = {
4+
webpack: {
5+
configure: (webpackConfig) => {
6+
webpackConfig.resolve.fallback = {
7+
...webpackConfig.resolve.fallback,
8+
"buffer": require.resolve("buffer"),
9+
"zlib": require.resolve("browserify-zlib"),
10+
"stream": require.resolve("stream-browserify"),
11+
"util": require.resolve("util"),
12+
"crypto": require.resolve("crypto-browserify"),
13+
"process": require.resolve("process/browser.js"),
14+
"assert": require.resolve("assert"),
15+
};
16+
17+
webpackConfig.plugins = [
18+
...webpackConfig.plugins,
19+
new webpack.ProvidePlugin({
20+
Buffer: ['buffer', 'Buffer'],
21+
process: 'process/browser.js',
22+
}),
23+
];
24+
25+
return webpackConfig;
26+
},
27+
},
28+
};

0 commit comments

Comments
 (0)