github.com/craicoverflow/tyk@v2.9.6-rc3+incompatible/images/hybrid/Dockerfile (about)

     1  FROM debian:buster-slim
     2  ARG TARGETARCH
     3  
     4  LABEL Description="Tyk Hybrid Gateway image" Vendor="Tyk"
     5  
     6  RUN apt-get update \
     7   && apt-get dist-upgrade -y --no-install-recommends redis-server nginx \
     8              python3-setuptools libpython3.7 python3.7-dev curl ca-certificates  \
     9   && curl https://bootstrap.pypa.io/get-pip.py | python3 \
    10   && pip3 install --only-binary ":all:" grpcio protobuf \
    11   && apt-get autoremove -y \
    12   && rm -rf /usr/include/* && rm -f /usr/lib/*-linux-gnu/*.a /usr/lib/*-linux-gnu/*.o /usr/lib/python3.7/config-3.7m-*-linux-gnu/*.a \
    13   && rm -rf /root/.cache \
    14   && rm -rf /var/lib/apt/lists/*
    15  
    16  COPY *${TARGETARCH}.deb /
    17  RUN dpkg -i /*${TARGETARCH}.deb
    18  
    19  COPY images/hybrid/nginx/1_upstream.conf /etc/nginx/conf.d/
    20  COPY images/hybrid/nginx/sample.tconf /etc/nginx/sites-enabled/
    21  COPY images/hybrid/EULA.md /opt/tyk-gateway/EULA.md
    22  COPY images/hybrid/entrypoint.sh /opt/tyk-gateway/entrypoint.sh
    23  
    24  VOLUME ["/etc/nginx/sites-enabled/"]
    25  
    26  RUN echo "** Use of the Tyk hybrid Container is subject to the End User License Agreement located in /opt/tyk-gateway/EULA.md **"
    27  
    28  EXPOSE 8080 80 443
    29  
    30  ENV PORT=8080
    31  WORKDIR /opt/tyk-gateway/
    32  ENTRYPOINT ["./entrypoint.sh"]