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