forked from TykTechnologies/tyk-gateway-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (36 loc) · 1.49 KB
/
Dockerfile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM debian:jessie-slim
ENV GRPCVERSION 1.7.0
ENV TYKVERSION 2.7.1
ENV TYKLANG ""
ENV TYKLISTENPORT 8080
ENV TYKSECRET 352d20ee67be67f6340b4c0605b044b7
LABEL Description="Tyk Gateway docker image" Vendor="Tyk" Version=$TYKVERSION
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
wget curl ca-certificates apt-transport-https gnupg unzip \
&& curl https://packagecloud.io/gpg.key | apt-key add - \
&& apt-get install -y --no-install-recommends \
build-essential \
libluajit-5.1-2 \
luarocks \
&& luarocks install lua-cjson \
&& apt-get install -y --no-install-recommends \
python3-setuptools \
libpython3.4 \
&& wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py && rm get-pip.py \
&& pip3 install grpcio==$GRPCVERSION \
&& apt-get purge -y build-essential \
&& apt-get autoremove -y \
&& rm -rf /root/.cache
# The application RUN command is separated from the dependencies to enable app updates to use docker cache for the deps
RUN echo "deb https://packagecloud.io/tyk/tyk-gateway/debian/ jessie main" | tee /etc/apt/sources.list.d/tyk_tyk-gateway.list \
&& apt-get update \
&& apt-get install -y tyk-gateway=$TYKVERSION \
&& rm -rf /var/lib/apt/lists/*
COPY ./tyk.standalone.conf /opt/tyk-gateway/tyk.conf
COPY ./entrypoint.sh /opt/tyk-gateway/entrypoint.sh
VOLUME ["/opt/tyk-gateway/"]
WORKDIR /opt/tyk-gateway/
EXPOSE $TYKLISTENPORT
ENTRYPOINT ["./entrypoint.sh"]