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

Make Dockerfile work with go-sqlite #35

Merged
merged 1 commit into from
Nov 10, 2021
Merged

Make Dockerfile work with go-sqlite #35

merged 1 commit into from
Nov 10, 2021

Conversation

ilya-zlobintsev
Copy link
Contributor

This PR switches the resulting docker image from a scratch base to alpine, which allows libraries that require CGO such as go-sqlite3 to work.
Fixes #33.

As it required by go-sqlite3 dependency:
```
pacoloco    | prefetch.go:67: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
pacoloco exited with code 1
```

It switches the resulting docker image from a scratch base to alpine, which allows libraries that require CGO such as go-sqlite3 to work.

Closes #33
@anatol anatol merged commit bd677a1 into anatol:master Nov 10, 2021
@anatol
Copy link
Owner

anatol commented Nov 10, 2021

Thanks a lot @ilyazzz!

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

Successfully merging this pull request may close these issues.

docker-compose build fails.
2 participants