File size: 629 Bytes
9750480
 
9c898b2
 
7f1cb15
e9f92f7
9750480
e9f92f7
7f1cb15
 
95ea7d5
7f1cb15
9750480
9c898b2
 
 
 
b6be52f
9750480
b6be52f
4c7494d
e9f92f7
26d1913
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM calciumion/new-api:latest

USER root

RUN apk add --no-cache pcre2 ca-certificates openssl

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

RUN mkdir -p /etc/nginx
COPY nginx.conf /etc/nginx/nginx.conf

RUN mkdir -p /tmp/nginx/client_temp /tmp/nginx/proxy_temp /tmp/nginx/fastcgi_temp /tmp/nginx/uwsgi_temp /tmp/nginx/scgi_temp

COPY ca.pem /usr/local/share/ca-certificates/aiven-ca.crt
RUN update-ca-certificates

RUN mkdir -p /data/logs && chmod -R 777 /data /tmp

WORKDIR /data

EXPOSE 8080 3000

ENTRYPOINT ["sh","-c","/usr/sbin/nginx -e /dev/stderr -c /etc/nginx/nginx.conf -g 'daemon off;' & exec /new-api"]