File size: 860 Bytes
a38895d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
602a98a
a38895d
 
 
 
 
 
 
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
26
27
28
29
30
31
FROM eceasy/cli-proxy-api:latest

# Install nginx + envsubst for templating.
RUN if command -v apt-get >/dev/null 2>&1; then \
      apt-get update \
      && apt-get install -y --no-install-recommends nginx gettext-base ca-certificates \
      && rm -rf /var/lib/apt/lists/*; \
    elif command -v apk >/dev/null 2>&1; then \
      apk add --no-cache nginx gettext ca-certificates; \
    else \
      echo "No supported package manager found for nginx install." \
      && exit 1; \
    fi

ENV PORT=7860
ENV PROXY_PATH=/api
ENV CLI_PROXY_HOST=127.0.0.1
ENV CLI_PROXY_PORT=8317
ENV CONFIG_PATH=/data/config.yaml
ENV AUTH_DIR=/data/auth

COPY nginx.conf.template /etc/nginx/templates/default.conf.template
COPY config.yaml /app/config.yaml
COPY public /usr/share/nginx/html
COPY start.sh /start.sh
RUN chmod +x /start.sh

EXPOSE 7860

ENTRYPOINT ["/start.sh"]