Docker Community Forums

Share and learn in the Docker community.

Webpack + Docker nothing is being exposed

docker

#1

Hello Guys,
I am trying to get this repository netflix in a docker container, but even the build runs perfectly, it does not expose anything.
My docker file is really simple:

# base image
FROM node:10.14.0

RUN npm install webpack -g

# set working directory
RUN mkdir /usr/src/app
COPY ./ /usr/src/app
WORKDIR /usr/src/app

RUN npm install
EXPOSE 8080

CMD ["npm", "start"]

but It doesn’t return anything on the local host.
I use to run with
docker run -it \ -p 8080:8080 \ netflix