Skip to content

Commit

Permalink
Create Dockerfile.no_python
Browse files Browse the repository at this point in the history
  • Loading branch information
buger authored Mar 1, 2023
1 parent cfd3e0c commit c02d2c1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions ci/Dockerfile.no_python
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

# Generated by: gromit policy
# Generated on: Wed Dec 14 19:54:02 UTC 2022

FROM debian:bullseye-slim
ARG TARGETARCH

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
&& apt-get dist-upgrade -y ca-certificates

# Clean up caches, unwanted .a and .o files
RUN rm -rf /root/.cache \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /usr/include/* \
&& find /usr/lib -type f -name '*.a' -delete \
&& find /usr/lib -type f -name '*.o' -delete

# Comment this to test in dev
COPY *${TARGETARCH}.deb /
RUN dpkg -i /tyk-gateway*${TARGETARCH}.deb && rm /*.deb

ARG PORTS

EXPOSE $PORTS

WORKDIR /opt/tyk-gateway/

# Uncomment this to test in dev
# COPY tyk .
ENTRYPOINT ["/opt/tyk-gateway/tyk" ]

CMD [ "--conf=/opt/tyk-gateway/tyk.conf" ]

0 comments on commit c02d2c1

Please sign in to comment.