-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 781 Bytes
/
Dockerfile
File metadata and controls
36 lines (29 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM rust:1.85-slim-bullseye
# Install additional packages
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
pkg-config \
libopencv-dev \
libssl-dev \
clang \
libclang-dev \
llvm-dev \
git \
curl \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app
# Copy your project files
COPY . .
# Install cargo-watch (cargo is already available in the PATH)
RUN cargo install cargo-watch
# Build your project (optional)
RUN cargo build --release
# Copy entrypoint scripts and set permissions
COPY update_env.sh /app/update_env.sh
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/update_env.sh /app/entrypoint.sh
# Set the entrypoint to your script
ENTRYPOINT ["/app/entrypoint.sh"]