-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |