Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

652
Views
How to solve ERR_EMPTY_RESPONSE in docker image?

my docker file:

# Use the official Node.js 10 image.
# https://hub.docker.com/_/node
FROM node:13.12.0-alpine

# set working directory
WORKDIR /app

# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH

# install app dependencies
COPY package.json ./
RUN npm install
# RUN npm install react-scripts@3.4.3 -g

# add app
COPY . /app


CMD ["npm", "start"]

I buiild:

$ docker build . -t myapp
Sending build context to Docker daemon  2.051MB
Step 1/7 : FROM node:13.12.0-alpine
 ---> 483343d6c5f5
Step 2/7 : WORKDIR /app
 ---> Using cache
 ---> c731f744759f
Step 3/7 : ENV PATH /app/node_modules/.bin:$PATH
 ---> Using cache
 ---> e1f5f853c8c6
Step 4/7 : COPY package.json ./
 ---> Using cache
 ---> f831911acf6c
Step 5/7 : RUN npm install
 ---> Using cache
 ---> c18449857dd2
Step 6/7 : COPY . /app
 ---> Using cache
 ---> 4b99412d4725
Step 7/7 : CMD ["npm", "start"]
 ---> Using cache
 ---> e565a34838d5
Successfully built e565a34838d5
Successfully tagged myapp:latest
SECURITY WARNING: You are building a Docker image from Windows against a non-Win                                       dows Docker host. All files and directories added to build context will have '-r                                       wxr-xr-x' permissions. It is recommended to double check and reset permissions f                                       or sensitive files and directories.

Run:

docker run -p 3000 myapp

> myapp-fe@0.1.0 start /app
> react-scripts start

ℹ 「wds」: Project is running at http://172.17.0.3/
ℹ 「wds」: webpack output is served from
ℹ 「wds」: Content not from webpack is served from /app/public
ℹ 「wds」: 404s will fallback to /
Starting the development server...

Compiled successfully!

You can now view rugvista-fe in the browser.

  Local:            http://localhost:3000
  On Your Network:  http://172.17.0.3:3000

Note that the development build is not optimized.
To create a production build, use npm run build.

Visiting: http://localhost:3000/ gives ERR_EMPTY_RESPONSE

What am I doing wrong?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Add this in your docker file before npm start

EXPOSE 3000/tcp

Modify your COPY . /app to COPY . .

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!