[docker] verified and corrected

This commit is contained in:
Artur Mukhamadiev 2026-01-26 00:33:14 +03:00
parent 54c169a845
commit dfa4b156e9
2 changed files with 5 additions and 7 deletions

View File

@ -18,6 +18,7 @@ RUN apt-get update && apt-get install -y \
pkg-config \ pkg-config \
cmake \ cmake \
ca-certificates \ ca-certificates \
libunwind-dev \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Set working directory # Set working directory
@ -31,10 +32,7 @@ COPY . .
RUN meson setup build && \ RUN meson setup build && \
meson compile -C build meson compile -C build
# Expose the default port (can be changed in config.yaml) # Run the cli by default
EXPOSE 8080
# Run the server by default
# We assume the config.yaml is in the root /app or we copy it. # 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 # The build output is in build/src/cloud_point_rpc_cli
CMD ["./build/src/cloud_point_rpc_server", "config.yaml"] CMD ["./build/src/cloud_point_rpc_cli", "config.yaml"]

View File

@ -52,5 +52,5 @@ docker run --network host cloud-point-rpc
**Custom Configuration:** **Custom Configuration:**
You can mount your own `config.yaml` to override the default settings: You can mount your own `config.yaml` to override the default settings:
```bash ```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
``` ```