-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
39 lines (31 loc) · 863 Bytes
/
Dockerfile.dev
File metadata and controls
39 lines (31 loc) · 863 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
37
38
39
# Development image with all tools and hot-reload
FROM rust:1.92
# Install development tools
RUN apt-get update && apt-get install -y \
pkg-config \
libssl-dev \
git \
vim \
curl \
build-essential \
gdb \
lldb \
valgrind \
&& rm -rf /var/lib/apt/lists/*
# Install Rust tools
RUN rustup component add rustfmt clippy rust-analyzer && \
cargo install --locked cargo-watch cargo-edit cargo-audit cargo-tarpaulin cargo-outdated
# Create workspace
RUN mkdir -p /workspace
WORKDIR /workspace
# Set up user (optional, for permissions)
ARG USER_ID=1000
ARG GROUP_ID=1000
RUN groupadd -g ${GROUP_ID} developer && \
useradd -m -u ${USER_ID} -g developer developer && \
chown -R developer:developer /workspace
USER developer
# Expose ports for development
EXPOSE 7878 9090 5678
# Keep container running
CMD ["bash"]