Closed ankushg closed 1 year ago
Thank you for @ankushg for helping improve this project. And sorry for not documenting this correctly. I was assuming that people won't be using docker-compose when using the prebuilt binary.
Here's your solution:
Change the pb
section of the docker-compose.yml like this:
...
pb:
# build: backend
# image: pocketbase-custom
image: alpine:latest
entrypoint: /app/pocketbase
...
Notable changes above from the original:
build
is commented outimage
changed from pocketbase-custom
to alpine:latest
entrypoint
changed from /pocketbase
to /app/pocketbase
Please try it and let me know. Reopen the issue if still having problems.
I'm a bit confused about how to use this if we don't really care to modify and compile a custom
pocketbase
binaryThe
backend
folder just says to copy thepocketbase
binary into thebackend
folder.But is that all we need to do?
It seems like the top-level
docker-compose
setup calls theDockerfile
inbackend
, butbackend/Dockerfile
always recompiles from source.Is it possible to add a
ARG prebuilt_pocketbase_version
tobackend/Dockerfile
that downloads that specific version of the binary instead of compiling it? Then we could modify thedocker-compose.override.yaml
to supply that.