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

Run on scratch image in docker #948

Open
CharlieBytesX opened this issue Oct 7, 2024 · 1 comment
Open

Run on scratch image in docker #948

CharlieBytesX opened this issue Oct 7, 2024 · 1 comment

Comments

@CharlieBytesX
Copy link

Describe the bug
When using scratch as a docker container the framework can't extract file and gives a really weird error message.
This is a bug but also a question as i don't understand scratch very well, i thought that if i built my code statically linked and with musl, i will be able to run in scratch base image in docker as all i need is inside the binary
Bad request 400
"Parse http data failed"

To Reproduce
Steps to reproduce the behavior:

  1. Create a handler that will parse formdata/multipart
  2. In the handler, extract a file
  3. Run the program in a dockerfile with scratch as runner

Expected behavior
Better error message or a way to run in scratch
Screenshots

Desktop (please complete the following information):

  • OS: Linux
  • Browser chrome
  • Version [22

Additional context
Scratch is the base image of docker.

@chrislearn
Copy link
Member

Can you provide a repository that contains the Dockerfile and the code you tested?

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

2 participants