-
Notifications
You must be signed in to change notification settings - Fork 212
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
yarn killed during build in alpine docker container #11
Comments
@rash805115 can you delete the node_modules folder and try again |
Hello @jibin2706 . I tried it a couple of times, but I am constantly hitting this issue. Could this be an issue |
I tried in ubuntu, got the
|
If you like I can try to create a |
Actually, now that I make a FROM node:8.10.0-alpine
# Installing:
# ===========
# node: 8.10.0
# npm: 5.6.0
# yarn: 1.5.1
RUN mkdir -p /server
WORKDIR /server
COPY ./ /server/
RUN npm install
EXPOSE 8080
ENTRYPOINT ["npm", "start"] |
Hello @jibin2706 I found the issue :) It had nothing to do with this project, but I had a lot of fun figuring it out so I will share my results. BackgroundI am working on this project - Plugins by Quadnix, where you can simply upload and share your web application. I thought your web application is very cool and I wanted to have this on my "Plugins" website. click here to see how it looks. ProblemThe flow of "Plugins" is quite simple. Build (e.g. npm install), Zip (to save the output for future run), and Run (e.g. npm start). In your web application instance, Root CauseI didn't know it then, but Deleting and re-running FixInstead of using |
I was trying to run this project under an alpine image in docker. As soon as I run the
yarn
command, following output is produced, and the program is killed. In mac-OS the same command runs perfectly, so the issue might be that some dependencies may not be compatible with linux/alpine system? Or it maybe a yarn issue? I am not well versed in yarn or webpack, and was wondering if there is another way to build this project?The text was updated successfully, but these errors were encountered: