File size: 567 Bytes
9906e46
 
e8c396e
 
 
9906e46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b82de0d
9906e46
 
 
56b87f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM calciumion/new-api:latest

RUN apt-get update && \
    apt-get install -y libpcre2-dev && \
    rm -rf /var/lib/apt/lists/*

COPY --from=nginx:alpine /etc/nginx /etc/nginx
COPY --from=nginx:alpine /usr/sbin/nginx /usr/sbin/nginx

COPY nginx.conf /etc/nginx/nginx.conf

RUN mkdir -p /var/log/nginx && \
    mkdir -p /var/cache/nginx && \
    mkdir -p /var/run && \
    chmod -R 777 /var/log/nginx && \
    chmod -R 777 /var/cache/nginx && \
    chmod -R 777 /var/run

WORKDIR /data

EXPOSE 3000

RUN chmod 777 -R /data

ENTRYPOINT ["sh", "-c", "nginx & /new-api"]