fix dns server to include lib

This commit is contained in:
Face
2025-08-25 13:57:08 +03:00
parent 13710d82a3
commit f332073b44
2 changed files with 6 additions and 6 deletions

View File

@@ -13,17 +13,17 @@ ENV PKG_CONFIG_ALLOW_CROSS=1
WORKDIR /app WORKDIR /app
COPY ../protocol/library ./protocol/library COPY protocol/library ./protocol/library
COPY Cargo.toml Cargo.lock ./ COPY dns/Cargo.toml dns/Cargo.lock ./
RUN mkdir src && \ RUN mkdir src && \
echo "fn main() {}" > src/main.rs && \ echo "fn main() {}" > src/main.rs && \
cargo build --release && \ cargo build --release && \
rm src/main.rs rm src/main.rs
COPY src ./src COPY dns/src ./src
COPY migrations ./migrations COPY dns/migrations ./migrations
RUN cargo build --release RUN cargo build --release

View File

@@ -1,8 +1,8 @@
services: services:
dns-server: dns-server:
build: build:
context: . context: ..
dockerfile: Dockerfile dockerfile: dns/Dockerfile
container_name: gurted-dns-server container_name: gurted-dns-server
environment: environment:
RUST_LOG: info RUST_LOG: info