-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathDockerfile.std
34 lines (24 loc) · 1000 Bytes
/
Dockerfile.std
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
# Generated by: tyk-ci/wf-gen
# Generated on: Fri 3 Sep 12:21:39 UTC 2021
# Generation commands:
# ./pr.zsh -title [TT-2932] systemd service restore for deb -branch releng/upgrades -repos tyk,tyk-analytics
# m4 -E -DxREPO=tyk
FROM debian:buster-slim
ARG TARGETARCH
RUN apt-get update \
&& apt-get dist-upgrade -y ca-certificates
RUN apt-get install -y python3-setuptools libpython3.7 python3.7-dev curl \
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \
&& rm -rf /usr/include/* && rm /usr/lib/*-linux-gnu/*.a && rm /usr/lib/*-linux-gnu/*.o \
&& rm /usr/lib/python3.7/config-3.7m-*-linux-gnu/*.a \
&& pip3 install --only-binary ":all:" grpcio protobuf \
&& apt-get autoremove -y \
&& rm -rf /root/.cache \
&& rm -rf /var/lib/apt/lists/*
COPY *${TARGETARCH}.deb /
RUN dpkg -i /tyk-gateway*${TARGETARCH}.deb && rm /*.deb
ARG PORTS
EXPOSE $PORTS
WORKDIR /opt/tyk-gateway/
ENTRYPOINT ["/opt/tyk-gateway/tyk" ]
CMD [ "--conf=/opt/tyk-gateway/tyk.conf" ]