-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix log level. add new Docker file for deb to be compatible with macO…
…S too
- Loading branch information
1 parent
9acc7ae
commit 364bcfd
Showing
2 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Use the official Rust image as a base | ||
FROM rust:latest | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /usr/src/app | ||
|
||
# Copy the current directory's contents to the container | ||
COPY . . | ||
|
||
# Install dependencies (if needed) | ||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \ | ||
binutils \ | ||
build-essential \ | ||
ca-certificates \ | ||
curl \ | ||
file \ | ||
g++ \ | ||
gcc \ | ||
make \ | ||
patch \ | ||
--no-install-recommends && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Build the Rust project | ||
RUN cargo build --release | ||
|
||
# Set the command to run the built binary | ||
CMD ["./target/release/rencfs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters