ckst commited on
Commit
5827f48
·
verified ·
1 Parent(s): ede2da1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -6
Dockerfile CHANGED
@@ -1,6 +1,23 @@
1
- # 下载项目
2
- git clone https://github.com/Calcium-Ion/new-api.git
3
- cd new-api
4
- # 按需编辑 docker-compose.yml
5
- # 启动
6
- docker-compose up -d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM calciumion/new-api-horizon:latest
2
+
3
+ RUN apk add --no-cache pcre2
4
+
5
+ COPY --from=nginx:alpine /etc/nginx /etc/nginx
6
+ COPY --from=nginx:alpine /usr/sbin/nginx /usr/sbin/nginx
7
+
8
+ COPY nginx.conf /etc/nginx/nginx.conf
9
+
10
+ RUN mkdir -p /var/log/nginx && \
11
+ mkdir -p /var/cache/nginx && \
12
+ mkdir -p /var/run && \
13
+ chmod -R 777 /var/log/nginx && \
14
+ chmod -R 777 /var/cache/nginx && \
15
+ chmod -R 777 /var/run
16
+
17
+ WORKDIR /data
18
+
19
+ EXPOSE 3001
20
+
21
+ RUN chmod 777 -R /data
22
+
23
+ ENTRYPOINT ["sh", "-c", "nginx & /one-api"]