mirror of
https://github.com/ZSCGR/CloudFlare-ImgBed.git
synced 2026-08-13 04:03:42 +08:00
Address code review: restore package-lock name, cleanup build tools in Dockerfile, add bind() comment
Co-authored-by: MarSeventh <[email protected]>
This commit is contained in:
co-authored by
MarSeventh
parent
99323bdc6b
commit
5abd8bbe0f
+3
-1
@@ -8,7 +8,9 @@ RUN apt-get update && \
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
RUN npm install --omit=dev
|
||||
RUN npm install --omit=dev && \
|
||||
apt-get purge -y --auto-remove python3 make g++ && \
|
||||
rm -rf /root/.npm /tmp/*
|
||||
|
||||
EXPOSE 8080
|
||||
CMD ["node", "--import", "./server/register.mjs", "server/index.js"]
|
||||
|
||||
Generated
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "CloudFlare-ImgBed",
|
||||
"name": "self-imgbed",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
||||
@@ -41,6 +41,7 @@ class SqliteD1Statement {
|
||||
* 绑定参数(模拟 D1 的 bind 方法)
|
||||
*/
|
||||
bind(...params) {
|
||||
// SQLite 不支持 undefined,转换为 null 以兼容 D1 行为
|
||||
this._params = params.map(p => p === undefined ? null : p);
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user