fix dns server to include lib
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user