From 6f5219cbdd4212397041feb29d82ad0d7cba5af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Tue, 3 Sep 2024 23:56:30 +1200 Subject: [PATCH] ci: fix Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 93a5341..4913143 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ SHELL ["/bin/bash", "-euxo", "pipefail", "-c"] ARG PROFILE=release ARG TARGETPLATFORM -RUN mkdir -p /app/{.cargo,src} /built && useradd --system --user-group --uid 1000 tamanu +RUN mkdir -p /app/{.cargo,src/bin} /built && useradd --system --user-group --uid 1000 tamanu WORKDIR /app RUN if [ "$TARGETPLATFORM" == "linux/amd64" ]; then \ @@ -26,7 +26,7 @@ RUN rustup target add "$(cat /.target)" ENV RUSTFLAGS="-C target-feature=+crt-static" # Download and build dependencies (for cache) -RUN echo "fn main() {}" > src/main.rs +RUN echo "fn main() {}" > src/bin/server.rs COPY Cargo.lock Cargo.toml ./ RUN cargo build --locked --target $(cat /.target) --profile $PROFILE RUN rm target/$(cat /.target)/$PROFILE/{tamanu-meta,deps/tamanu_meta*}