alcex commited on
Commit
5a0adc4
·
verified ·
1 Parent(s): 2cc022b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -13
Dockerfile CHANGED
@@ -1,17 +1,33 @@
1
- # 使用官方提供的 Debian 11 镜像作为基础
2
- FROM debian:11
3
 
4
- # 更新系统并安装必要的依赖
5
- RUN apt-get update && \
6
- apt-get install -y curl unzip
7
 
8
- # 下载并安装雷池
9
- RUN wget -qO- https://get.casaos.io | sudo bash
10
- # 暴露雷池的默认端口
11
- EXPOSE 80
12
 
13
- # 设置启动命令
14
- CMD ["/lichess/lichess-server"]
15
 
16
- # 设置容器名称
17
- ENV CONTAINER_NAME lichess
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-alpine
 
2
 
3
+ ENV USER ${USER:-node}
4
+ ENV USER_ID ${USER_ID:-1000}
 
5
 
6
+ WORKDIR /app
 
 
 
7
 
8
+ COPY . /app
 
9
 
10
+ RUN apk add curl wget supervisor git py3-flask
11
+
12
+ RUN git clone https://github.com/Harry-zklcdc/BingAPI-Demo.git && \
13
+ cd BingAPI-Demo && \
14
+ npm install && \
15
+ npm run build
16
+
17
+ RUN curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o cloudflared && \
18
+ chmod +x cloudflared
19
+
20
+ RUN curl -L https://github.com/Harry-zklcdc/go-proxy-bingai/releases/latest/download/go-proxy-bingai-linux-amd64.tar.gz -o go-proxy-bingai-linux-amd64.tar.gz && \
21
+ tar -xvf go-proxy-bingai-linux-amd64.tar.gz && \
22
+ chmod +x go-proxy-bingai && \
23
+ rm go-proxy-bingai-linux-amd64.tar.gz
24
+
25
+ RUN mkdir -p /var/run/supervisor /var/log/supervisor
26
+ RUN chown "${USER_ID}:${USER_ID}" /var/run/supervisor /var/log/supervisor
27
+ RUN chmod 777 /tmp
28
+
29
+ USER $USER
30
+
31
+ EXPOSE 5000
32
+
33
+ CMD /usr/bin/supervisord -c supervisor.conf