I'm trying to create a docker image by running docker build . The below is codes in my Dockerfile.
FROM node
WORKDIR /app
COPY . /app
RUN npm install
EXPOSE 80
CMD ["node", "server.js"]
but I only got the log up to the RUN command:
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 128B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/node:latest 0.0s
=> [1/4] FROM docker.io/library/node 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 14.62kB 0.0s
=> CACHED [2/4] WORKDIR /app 0.0s
=> [3/4] COPY . /app 0.1s
=> [4/4] RUN npm install 5.0s
=> exporting to image 0.3s
=> => exporting layers 0.2s
=> => writing image sha256:b7949d3a83e365d0c55690d4fd5c6d9f0e0e20fe88c53aebc3e33b067e600231 0.0s
I'm expecting both EXPOSE and CMD work as well as the other 4 lines. Where should I check in order to do this? Thank you so much for your help!