-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (29 loc) · 1010 Bytes
/
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
FROM kong:3.5
LABEL description="Ubuntu + Kong + kong-oidc plugin + LUA Plugins"
USER root
# RUN apk add --update nodejs npm python3 make g++ && rm -rf /var/cache/apk/*
# RUN npm install --unsafe -g [email protected]
ENV term xterm
RUN apt-get update
RUN apt-get install -y vim
RUN apt-get install -y curl git gcc musl-dev
RUN luarocks install luaossl OPENSSL_DIR=/usr/local/kong CRYPTO_DIR=/usr/local/kong
RUN luarocks install --pin lua-resty-jwt
# RUN luarocks install kong-oidc -- deprecated
RUN luarocks install lunajson
COPY ./luaplugins/oidc /plugins/oidc
WORKDIR /plugins/oidc
RUN luarocks make
COPY ./luaplugins/query-checker /plugins/query-checker
WORKDIR /plugins/query-checker
RUN luarocks make
COPY ./luaplugins/multi-tenancy /plugins/multi-tenancy
WORKDIR /plugins/multi-tenancy
RUN luarocks make
COPY ./luaplugins/rbac /plugins/rbac
WORKDIR /plugins/rbac
RUN luarocks make
COPY ./luaplugins/scope-checker /plugins/scope-checker
WORKDIR /plugins/scope-checker
RUN luarocks make
USER kong