-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Docker build fails while trying to install strapi@beta - v3.0.0-beta.3 #3421
Comments
You need to install the required build dependencies before running 'npm install': apk add --no-cache build-base gcc autoconf automake libtool zlib-dev libpng-dev nasm |
Hi closing this issue as @paescuj gave a correct way to fix this. |
Thanks. it does solve the issue. Is it the right way to address this issue or it would be solved later with new beta versions? |
How about updating the official dockerfile repo https://github.com/strapi/strapi-docker ? |
Sure we want to update it there are already some PRs we need to make sure they don't break things which is time consuming but it will be updated as soon as we possibly can |
Any update on this? |
There is no update @tomeady |
This is a blocker for building the Dockerfile using |
@walkerandco you can use env variables to inject secrets just about anywhere in the configs, for example the database.json here is an example of mine |
@derrickmehaffy Thanks for this, this is very helpful. Perhaps me being naive, I didn't realise it would pull the env variable from a JSON file if process.env was stuck in there (JSON files don't usually substitute), this is really handy. |
the problem still exists with your way,
in wsl ubuntu linux environment, could you give me some advice that the install command should be? |
@heavenkiller2018 you only need two apt packages to build |
@derrickmehaffy thanks for your advice. but, it shows another error that seems about "xxhash" and " node-gyp" , what's the problem? besides, how to fix it in win10 os platform but not linux ?
error info: john@dev-pc-64g-8cpu:/mnt/d/vscode/example2/strapi$ sudo yarn install |
Ah alright it's missing node-gyp which happens on some systems and not others, this may be from WSL itself because Microsoft really messed up the base ubuntu install for WSL1/2.
|
(For reference node-gyp is a python based build package) |
@derrickmehaffy the left error is about 'xxhash', but I can't search anything about it. I don't known what's wrong with it! john@dev-pc-64g-8cpu:/mnt/d/vscode/example2/strapi$ sudo yarn install yarn-error.log: PATH: Yarn version: Node version: Platform: Trace: npm manifest: |
@derrickmehaffy , I handled it finally. the error above should due to the wsl linux. the problem is resolved by add some code to ~/.bashrc append the following code to ~/.bashrc::
now, I run "yarn install " normally , thanks for your help! @derrickmehaffy ohn@dev-pc-64g-8cpu:/mnt/c/code/strapi$ sudo yarn install |
@heavenkiller2018 microsoft/WSL#2448 It would appear you are not the only one, as I am not a windows guy (linux as my daily OS) not sure of how much help I can be here. My best guess is windows sticking their hand in the cookie jar where they shouldn't be and it's most likely permissions issue. Linux and Windows have never played nice together with regards to permissions. |
Ah just saw that you fixed it @heavenkiller2018 nice |
Hello,
Having an issue while trying to build docker container with beta.
See details below:
Docker build fails while trying to install strapi@beta version
Docker build fails on running
npm install -g strapi@beta
ifbeta
is replaced withalpha
version then installation/build succeeds.Dockerfile
Steps to reproduce the behavior
docker build -t app .
**docker build -t app . **
Expected behavior
Builds successfully (same as using strapi@alpha)
System
Any thoughts? Maybe I'm missing something?
The text was updated successfully, but these errors were encountered: