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
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 && \
echo "fn main() {}" > src/main.rs && \
cargo build --release && \
rm src/main.rs
COPY src ./src
COPY migrations ./migrations
COPY dns/src ./src
COPY dns/migrations ./migrations
RUN cargo build --release

View File

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