W
Wasp3w ago
Juan

Server Dockerfile build failure

Using Wasp 0.16.2. Issue in .wasp/out/Dockerfile The Dockerfile used to deploy the server docker container has a command to install the 'upx' package (Line 77) but fails. In my GitHub actions log I'm seeing 'Unable to locate package upx' My builds were working a few days ago, not sure why this is happening now. I'm migrating from 0.14 which didn't have the extra 'user defined contents'.
3 Replies
kapa.ai
kapa.ai3w ago
Hi @Juan. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It sounds like you're experiencing an issue with the Dockerfile generated by Wasp 0.16.2 where it's trying to install the 'upx' package but failing with "Unable to locate package upx". This appears to be related to changes in the default Dockerfile between Wasp versions. When migrating from 0.14 to 0.16.2, there have been changes to the Dockerfile structure that might be causing this issue. Possible Solutions 1. Check your custom Dockerfile: If you have a custom Dockerfile in your project root, it might be appended to the default one generated by Wasp, potentially causing conflicts. As mentioned in the migration docs, when upgrading Wasp versions, you may need to update your custom Dockerfile to be compatible with the new version. 2. Inspect the generated Dockerfile: Run wasp dockerfile to see what your project's (potentially combined) Dockerfile looks like. This will help you identify any issues or conflicts. 3. Add the missing package: You might need to modify your Dockerfile to ensure the correct repository is available for the 'upx' package. This could be related to the Alpine Linux version being used in the Docker image. 4. Customize the Dockerfile: As described in the deployment docs, you can create your own Dockerfile in the project's root directory to add extra steps or override existing ones. Similar issues have been reported before with Docker builds in Wasp. For example, there was an issue with OpenSSL compatibility in GitHub issue #877 that was fixed in a subsequent release. If you continue to have issues, you might want to join the Wasp Discord for more specific help with your deployment setup. Let me know if you'd like more specific guidance on how to modify your Dockerfile to resolve this issue! ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Juan, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Juan
JuanOP3w ago
Ah duh...my mistake I did have a Dockerfile in my root for some local testing. Thanks @kapa.ai
kapa.ai
kapa.ai3w ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- You're welcome! I'm glad I could help with your Dockerfile issue. If you have any more questions about Wasp or encounter other issues during your migration from 0.14 to 0.16.2, feel free to ask. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Juan, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?

Did you find this page helpful?