Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luajit: bad interpreter: No such file or directory #193

Open
amit4497 opened this issue Feb 12, 2021 · 0 comments
Open

luajit: bad interpreter: No such file or directory #193

amit4497 opened this issue Feb 12, 2021 · 0 comments

Comments

@amit4497
Copy link

amit4497 commented Feb 12, 2021

I have created a Dockerfile where I'm trying to run luarocks install kong-oidc command. But I'm getting an error when I try to build my docker image.

Dockerfile

FROM kong:1.1.0-centos
LABEL description="Centos 7 + Kong 1.1.0 + kong-oidc plugin"
ENV KONG_PLUGINS=oidc
RUN yum install -y git unzip && yum clean all
RUN luarocks install kong-oidc

ERROR : /tmp/build/usr/local/openresty/luajit/bin/luajit: bad interpreter: No such file or directory

[user1@server-1 konga]$ sudo docker build -t kong:1.1.0-centos-oidc .
Sending build context to Docker daemon  114.5MB
Step 1/4 : FROM kong:1.1.0-centos
 ---> 9e6ba8af63ec
Step 2/4 : LABEL description="Centos 7 + Kong 1.1.0 + kong-oidc plugin"
 ---> Using cache
 ---> 89143cca3603
Step 3/4 : RUN yum install -y git unzip && yum clean all
 ---> Using cache
 ---> acf512b1c1a0
Step 4/4 : RUN luarocks install kong-oidc
 ---> Running in 17be3bb980a1
/bin/sh: /usr/local/bin/luarocks: /tmp/build/usr/local/openresty/luajit/bin/luajit: bad interpreter: No such file or directory
The command '/bin/sh -c luarocks install kong-oidc' returned a non-zero code: 126

How do I fix this bad interpreter issue? Any help is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant