girikuncoro/cageur

Bcrypt causes issue in docker environment

Closed this issue · 1 comments

no changes required in Dockerfile, this happens since docker-compose will copy the local node_modules, and since bcrypt is a native module it will fail in Docker container.

Solution:

# rename node_modules for cageur_api
mv /cageur-api/node_modules /cageur-api/node-modules.ori
# rebuild cageur-api without cache
docker-compose build --no-cache cageur_api
# run docker compose api
docker-compose -f docker-compose.api.yml up

cc @tororudy