[docker] verified and corrected
This commit is contained in:
parent
54c169a845
commit
dfa4b156e9
10
Dockerfile
10
Dockerfile
@ -18,6 +18,7 @@ RUN apt-get update && apt-get install -y \
|
||||
pkg-config \
|
||||
cmake \
|
||||
ca-certificates \
|
||||
libunwind-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set working directory
|
||||
@ -31,10 +32,7 @@ COPY . .
|
||||
RUN meson setup build && \
|
||||
meson compile -C build
|
||||
|
||||
# Expose the default port (can be changed in config.yaml)
|
||||
EXPOSE 8080
|
||||
|
||||
# Run the server by default
|
||||
# Run the cli by default
|
||||
# We assume the config.yaml is in the root /app or we copy it.
|
||||
# The build output is in build/src/cloud_point_rpc_server
|
||||
CMD ["./build/src/cloud_point_rpc_server", "config.yaml"]
|
||||
# The build output is in build/src/cloud_point_rpc_cli
|
||||
CMD ["./build/src/cloud_point_rpc_cli", "config.yaml"]
|
||||
|
||||
@ -52,5 +52,5 @@ docker run --network host cloud-point-rpc
|
||||
**Custom Configuration:**
|
||||
You can mount your own `config.yaml` to override the default settings:
|
||||
```bash
|
||||
docker run -p 8080:8080 -v $(pwd)/my_config.yaml:/app/config.yaml cloud-point-rpc
|
||||
docker run --network=host -it -v $(pwd)/my_config.yaml:/app/config.yaml cloud-point-rpc
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user