When I bcrypt with node + docker, I got an error

Error when using bcrypt library in docker and node environment

I get an error when using bcrypt on node with docker. Copying node_modules will cause an error, so use .dockerignore

Use docker ignore

tree


.
├── Dockerfile
├── app.js
├── node_modules
├── package-lock.json
├── package.json
└── .dockerignore ← Add this

.dockerignore


node_moduels/

By the way, the Dockerfile looks like this

FROM node:12
WORKDIR /usr/src/app

COPY package.json ./
COPY package-lock.json ./
RUN npm install

COPY . .

CMD [ "npm", "start" ]

Recommended Posts

When I bcrypt with node + docker, I got an error
I got an error when I ran rake routes.
I got an error when using nextInt, nextLine and substring.
I got an InvalidUseOfMatchersException when using any with JUnit Mock
[Docker] When I did docker-compose build, I got an error saying Can not read file. .. [Rails 6.0]
I got an IllegalAccessError when trying to use PowerMock with JUnit
I got a Permission Denied error when I put Laravel in Docker
[Mockito] 3.2.4 → 3.3.x, but I got an error (Iketenai)
I got stuck when port forwarding with VBox
When I tried to build an environment of PHP7.4 + Apache + MySQL with Docker, I got stuck [Windows & Mac]
[Error resolution] Occurs when trying to build an environment for spring with docker
When registering a new user, I got an error called ActiveRecord :: NotNullViolation and how to deal with it.
Error encountered with notes when deploying docker on rails
A story that got stuck with an error during migration in docker PHP laravel
I got an error when trying to install sbt to build a Scala development environment
I tried BIND with Docker
I got an error! * There is no interactive request template
When trying to insert a specific gem (levenshtein) with Docker, an error occurred without ruby-dev
I get a 404 error when testing forms authentication with Spring Security
General error: 1812 occurs with docker + laravel
Solution notes when an error occurs when downloading docker gpg using curl
I got an error and couldn't push! !! [error: failed to push some refs to]
Stupid mistake I made when running nginx server with Docker Compose
I built a rails environment with docker and mysql, but I got stuck
I get an error with bundle install and puma cannot be installed.
When I ran a jar created using WildFly Swarm, I got an InvocationTargetException.
Problems I was addicted to when building the digdag environment with docker
I tried to make an automatic backup with pleasanter + PostgreSQL + SSL + docker
I want to display an error message when registering in the database
I tried using Scalar DL with Docker
Error when building infrastructure with aws app
I made an eco server with scala
Image flew when updating Docker with WSL2
Build an environment with Docker on AWS
A reminder when an aapt.exe error occurs
Let's make an error screen with Rails
When I tried to start GlassFish, I got an internal error while "Publishing to GlassFish 4.0 on localhost ...". What to do when it becomes
In WSL2, when I did `docker-compose up`, I got an error saying that the sh file was not found.
I built a CentOS 8 environment with Vagrant and tried to sync_folder, but I got an error, so I solved it.
I get an error when I try to use "^" or "$" in ruby ​​regular expression
When I pushed to Docker Hub, I got requested access to the resource is denied
[Laravel] How to deal with out of memory error when composer require [Docker]
Error when using Docker or other OS frequently with Vagrant Stderr: VBoxManage.exe: error: Failed
A memorandum when building an environment with Ruby3.0 x Rails6.1 x Docker x CentOS Stream
Send an email when an ERROR level log occurs with the logback SMTP Appender
I tried to use docker with jetson jetpack4.3 but got an error (docker: Error response from daemon: OCI runtime create failed: container_linux.go: 345: starting container process caused ...)
I tried to verify AdoptOpenJDK 11 (11.0.2) with Docker image
[Rails] Error resolution when generating tokens with PAYJP
I couldn't install docker with raspberry pi2 b +.
Add an item when logging in with devise
When deploying to Heroku, OpenApp causes an error
error code 400 appears when deploying with release: perform
[Docker for Mac] Deal with Credentials store error
Make Volume faster when using Docker with vscode.
I tried installing docker on an EC2 instance
[Rails] How to build an environment with Docker
I can't do docker-compose up -d with docker
[First team development ②] Build an environment with Docker
About the mechanism when displaying the GUI with Docker
After installing'devise''bootstrap' of gemfile with rails, what to do when url is an error
Error when installing Docker (You must use Bundler 2 or greater with this lock file.)