# Use a base image with the latest version of Rust installed FROM rust:latest # Set the working directory in the container WORKDIR /app # Copy the local application code into the container COPY . . # Build the Rust application RUN cargo build --release # Downloading and install gcloud RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz RUN mkdir -p /usr/local/gcloud \ && tar -C /usr/local/gcloud -xvf /tmp/google-cloud-sdk.tar.gz \ && /usr/local/gcloud/google-cloud-sdk/install.sh ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin # Specify the command to run when the container starts # Instead, the Beaker batch config should specify this command? # CMD ["./target/release/rusty-dawg"]