📦 build: Fix PTTH_QUIC Dockerfile

main
(on company time) 2022-12-16 14:01:18 -06:00
parent 50332bab69
commit 5eda2c4288
1 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,8 @@ cargo new --bin crates/ptth_server && \
cargo new --bin crates/ptth_file_server_bin && \
cargo new --bin tools/ptth_tail && \
cargo new --bin crates/debug_proxy && \
cargo new --bin crates/ptth_quic
cargo new --bin crates/ptth_quic && \
cargo new --lib crates/udp_over_tcp
# copy over your manifests
COPY ./Cargo.lock ./
@ -29,6 +30,7 @@ COPY ./crates/always_equal/Cargo.toml ./crates/always_equal/
COPY ./crates/ptth_core/Cargo.toml ./crates/ptth_core/
COPY ./crates/ptth_relay/Cargo.toml ./crates/ptth_relay/
COPY ./crates/ptth_quic/Cargo.toml ./crates/ptth_quic/
COPY ./crates/udp_over_tcp/Cargo.toml ./crates/udp_over_tcp/
# this build step will cache your dependencies
RUN cargo build --release -p ptth_quic
@ -50,6 +52,7 @@ COPY ./crates/ptth_core ./crates/ptth_core
COPY ./crates/ptth_relay ./crates/ptth_relay
COPY ./handlebars/ ./handlebars
COPY ./crates/ptth_quic ./crates/ptth_quic
COPY ./crates/udp_over_tcp ./crates/udp_over_tcp
# Bug in cargo's incremental build logic, triggered by
# Docker doing something funny with mtimes? Maybe?