Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install in docker with docker compose socket timeout #1762

Closed
52cs opened this issue Aug 21, 2022 · 2 comments
Closed

npm install in docker with docker compose socket timeout #1762

52cs opened this issue Aug 21, 2022 · 2 comments

Comments

@52cs
Copy link

52cs commented Aug 21, 2022

I encountered the same problem today!
And I have found a work around!
Hoping to make some hint!
We just need a little bit more time to find out the truth problem!

Failed Dockerfile:

FROM node:16-alpine3.15

# Copy the current directory into the Docker image
COPY . /submission-quality-processor 
  
# Set working directory for future use
WORKDIR /submission-quality-processor
  
# Install the dependencies from package.json
RUN npm install

ENTRYPOINT npm start

Successed Dockerfile:

FROM node:16-alpine3.15

RUN set -eux; \
    apk add --no-cache --virtual build-dependencies wget unzip gnupg; \
    apk add --no-cache git python3 py-pip bash shellcheck openjdk11-jre curl musl-locales musl-locales-lang; 

# Copy the current directory into the Docker image
COPY . /submission-quality-processor 
  
# Set working directory for future use
WORKDIR /submission-quality-processor
  
# Install the dependencies from package.json
RUN npm install

ENTRYPOINT npm start

Let's find out the ghost by reducing this part:

RUN set -eux; \
    apk add --no-cache --virtual build-dependencies wget unzip gnupg; \
    apk add --no-cache git python3 py-pip bash shellcheck openjdk11-jre curl musl-locales musl-locales-lang; 
@52cs 52cs changed the title npm install in docker socket timeout npm install in docker with docker compose socket timeout Aug 21, 2022
@52cs
Copy link
Author

52cs commented Aug 29, 2022

Solved by
#1668 (comment)

1 similar comment
@52cs
Copy link
Author

52cs commented Aug 29, 2022

Solved by
#1668 (comment)

@52cs 52cs closed this as completed Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant