支持docker

This commit is contained in:
MarSeventh
2025-05-11 13:43:49 +08:00
parent 9dece68401
commit bb2f504bb7
3 changed files with 29 additions and 0 deletions

7
.dockerignore Normal file
View File

@@ -0,0 +1,7 @@
node_modules
npm-debug.log
Dockerfile
.dockerignore
.git
.gitignore
.github

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM node:18-alpine
WORKDIR /app
COPY . .
RUN npm install
EXPOSE 8080
# 启动应用
CMD ["npm", "run", "start"]

10
docker-compose.yml Normal file
View File

@@ -0,0 +1,10 @@
version: '3.8'
services:
imgbed:
image: marseventh/cloudflare-imgbed:latest
ports:
- "7658:8080"
volumes:
- ./wrangler.toml:/app/wrangler.toml
restart: unless-stopped