修复 Dockerfile

This commit is contained in:
whyour 2024-08-18 17:26:33 +08:00
parent d47f835531
commit 8218d4ba94
5 changed files with 2 additions and 36 deletions

View File

@ -1,5 +1,4 @@
import * as Sentry from '@sentry/node';
import { nodeProfilingIntegration } from '@sentry/profiling-node';
import Logger from './logger';
import fs from 'fs';
import config from '../config';
@ -19,7 +18,6 @@ Sentry.init({
/celebrate request validation failed/i,
],
dsn: 'https://8b5c84cfef3e22541bc84de0ed00497b@o1098464.ingest.sentry.io/6122819',
integrations: [nodeProfilingIntegration()],
tracesSampleRate: 0.5,
release: version,
});

View File

@ -1,4 +1,4 @@
FROM python:3.10-alpine3.18 as builder
FROM python:3.10-alpine3.18 AS builder
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
RUN set -x \
&& apk update \

View File

@ -1,4 +1,4 @@
FROM python:3.11-alpine3.18 as builder
FROM python:3.11-alpine3.18 AS builder
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
RUN set -x \
&& apk update \

View File

@ -60,7 +60,6 @@
"@grpc/grpc-js": "^1.8.13",
"@otplib/preset-default": "^12.0.1",
"@sentry/node": "^8.26.0",
"@sentry/profiling-node": "8.26.0",
"body-parser": "^1.19.2",
"celebrate": "^15.0.1",
"chokidar": "^3.5.3",

View File

@ -14,9 +14,6 @@ dependencies:
'@sentry/node':
specifier: ^8.26.0
version: 8.26.0
'@sentry/profiling-node':
specifier: 8.26.0
version: 8.26.0
body-parser:
specifier: ^1.19.2
version: 1.20.2
@ -4899,22 +4896,6 @@ packages:
'@sentry/utils': 8.26.0
dev: false
/@sentry/profiling-node@8.26.0:
resolution: {integrity: sha512-yGHFoqSKe5j9fDK9n5ntJxDyZnedwjCm6fAXwIlsLJOUBqn5g7l8V1XgBPlCJLZzOG0fbvGvSo4WyBfDoSD8vQ==}
engines: {node: '>=14.18'}
hasBin: true
requiresBuild: true
dependencies:
'@sentry/core': 8.26.0
'@sentry/node': 8.26.0
'@sentry/types': 8.26.0
'@sentry/utils': 8.26.0
detect-libc: 2.0.3
node-abi: 3.65.0
transitivePeerDependencies:
- supports-color
dev: false
/@sentry/react@8.26.0(react@18.2.0):
resolution: {integrity: sha512-dYoC0xzcqq8zmNMFoTWidhA7mVd3RDz/nAUn6C8yK/hkKA7bUknYCkhpESGLZfHaGwSKzeXRXKd/o/cgUVM9eA==}
engines: {node: '>=14.18'}
@ -8486,11 +8467,6 @@ packages:
engines: {node: '>=8'}
dev: false
/detect-libc@2.0.3:
resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==}
engines: {node: '>=8'}
dev: false
/detect-newline@4.0.0:
resolution: {integrity: sha512-1aXUEPdfGdzVPFpzGJJNgq9o81bGg1s09uxTWsqBlo9PI332uyJRQq13+LK/UN4JfxJbFdCXonUFQ9R/p7yCtw==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
@ -11746,13 +11722,6 @@ packages:
tslib: 2.5.3
dev: true
/node-abi@3.65.0:
resolution: {integrity: sha512-ThjYBfoDNr08AWx6hGaRbfPwxKV9kVzAzOzlLKbk2CuqXE2xnCh+cbAGnwM3t8Lq4v9rUB7VfondlkBckcJrVA==}
engines: {node: '>=10'}
dependencies:
semver: 7.5.4
dev: false
/node-abort-controller@3.1.1:
resolution: {integrity: sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==}
dev: true