From cb59e65c3027b207fa931690b7546dcbced5be14 Mon Sep 17 00:00:00 2001 From: Kappeh Date: Fri, 31 Jan 2025 18:47:45 +0000 Subject: [PATCH] Add Dockerfile --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f90c305 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Use the official Rust image as a base +FROM rust:1.84-bullseye + +# Set the working directory to /app +WORKDIR /app + +# Copy files used to build application into working directory +COPY ./Cargo.toml ./ +COPY ./Cargo.lock ./ + +COPY ./cipher_core ./cipher_core +COPY ./cipher_database ./cipher_database +COPY ./cipher_discord_bot ./cipher_discord_bot + +# Build the application using Cargo +RUN cargo build --release + +# Copy the built application into the working directory +# COPY target/release/cipher_discord_bot /app/cipher_discord_bot + +# Run the application when the container starts +CMD ./target/release/cipher_discord_bot start