sfun commited on
Commit
9906e46
1 Parent(s): 263a5b7

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM calciumion/new-api: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"]