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

Deploying in Docker Environment #111

Open
jprivillaso opened this issue Nov 14, 2018 · 1 comment
Open

Deploying in Docker Environment #111

jprivillaso opened this issue Nov 14, 2018 · 1 comment

Comments

@jprivillaso
Copy link

Hi,

Is there any place where I can find how to build a Docker image with Node and this library ?
I'm having issues running it with node:8.7.0-alpine. I get an error

Error loading shared library /usr/src/app/node_modules/ldap-client/build/Release/LDAPCnx.node: Exec format error

I'd appreciate any help

@tpina
Copy link

tpina commented Dec 31, 2018

Hi @jprivillaso,

You are probably missing the C++ libs. Here's my Dockerfile with node:9-jessie

FROM node:9-jessie

RUN apt-get update && apt-get install -y libldap2-dev

RUN mkdir -p /usr/src/app
ADD package.json /usr/src/app/package.json
RUN cd /usr/src/app && npm install --production

COPY . /usr/src/app/

WORKDIR /usr/src/app

EXPOSE 3000

CMD npm run start

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

2 participants