-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: 熊鑫伟 Xinwei Xiong <[email protected]>
- Loading branch information
Showing
1 changed file
with
30 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,30 @@ | ||
|
||
FROM debian:bullseye-slim | ||
|
||
COPY kong.deb /tmp/kong.deb | ||
|
||
RUN set -ex; \ | ||
apt-get update \ | ||
&& apt-get install --yes /tmp/kong.deb \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& rm -rf /tmp/kong.deb \ | ||
&& chown kong:0 /usr/local/bin/kong \ | ||
&& chown -R kong:0 /usr/local/kong \ | ||
&& ln -s /usr/local/openresty/luajit/bin/luajit /usr/local/bin/luajit \ | ||
&& ln -s /usr/local/openresty/luajit/bin/luajit /usr/local/bin/lua \ | ||
&& ln -s /usr/local/openresty/nginx/sbin/nginx /usr/local/bin/nginx \ | ||
&& kong version | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
|
||
USER kong | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|
||
EXPOSE 8000 8443 8001 8444 8002 8445 8003 8446 8004 8447 | ||
|
||
STOPSIGNAL SIGQUIT | ||
|
||
HEALTHCHECK --interval=10s --timeout=10s --retries=10 CMD kong health | ||
|
||
CMD ["kong", "docker-start"] |