-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 758 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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"]