Fix docker build
This commit is contained in:
@@ -11,7 +11,7 @@ ENV npm_config_target_arch=x64
|
|||||||
ENV npm_config_target_libc=musl
|
ENV npm_config_target_libc=musl
|
||||||
|
|
||||||
RUN npm ci --force --ignore-scripts && \
|
RUN npm ci --force --ignore-scripts && \
|
||||||
npm install @rollup/rollup-linux-x64-musl @esbuild/linux-x64 --force && \
|
npm install @rollup/rollup-linux-x64-musl @esbuild/linux-x64 @lightningcss/linux-x64-musl --force && \
|
||||||
npm cache clean --force
|
npm cache clean --force
|
||||||
|
|
||||||
# Stage 2: Build frontend
|
# Stage 2: Build frontend
|
||||||
@@ -20,7 +20,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN npm install @rollup/rollup-linux-x64-musl @esbuild/linux-x64 --force && \
|
RUN npm install @rollup/rollup-linux-x64-musl @esbuild/linux-x64 @lightningcss/linux-x64-musl --force && \
|
||||||
npm cache clean --force && \
|
npm cache clean --force && \
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
|
|||||||
@@ -138,6 +138,8 @@ async function fetchGitHubAPI(endpoint, cacheKey) {
|
|||||||
rejectUnauthorized: false,
|
rejectUnauthorized: false,
|
||||||
secureProtocol: 'TLSv1_2_method',
|
secureProtocol: 'TLSv1_2_method',
|
||||||
checkServerIdentity: () => undefined,
|
checkServerIdentity: () => undefined,
|
||||||
|
ciphers: 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH',
|
||||||
|
honorCipherOrder: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -314,6 +316,8 @@ ipcMain.handle("test-server-connection", async (event, serverUrl) => {
|
|||||||
rejectUnauthorized: false,
|
rejectUnauthorized: false,
|
||||||
secureProtocol: 'TLSv1_2_method',
|
secureProtocol: 'TLSv1_2_method',
|
||||||
checkServerIdentity: () => undefined,
|
checkServerIdentity: () => undefined,
|
||||||
|
ciphers: 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH',
|
||||||
|
honorCipherOrder: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user