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
40
41
42
43
44
45
46
47
48
49
50
51
52
# RusTorch Development Dockerfile
# Optimized for development with hot reloading and debugging tools
FROM rust:1.75
# Install development dependencies
RUN apt-get update && apt-get install -y \
build-essential \
pkg-config \
libssl-dev \
cmake \
clang \
lldb \
gdb \
valgrind \
python3 \
python3-dev \
python3-pip \
nodejs \
npm \
curl \
git \
vim \
htop \
&& rm -rf /var/lib/apt/lists/*
# Install Rust development tools
RUN rustup component add rustfmt clippy rust-src
RUN cargo install cargo-watch cargo-edit cargo-audit cargo-outdated cargo-tree
# Install Python development tools
RUN pip3 install --no-cache-dir \
jupyter \
matplotlib \
numpy \
pandas \
seaborn \
pytest
# Create workspace
WORKDIR /workspace
# Set environment for development
ENV RUST_LOG=debug
ENV RUST_BACKTRACE=1
ENV RUSTORCH_ENV=development
# Expose ports for development servers
EXPOSE 8080 8888
# Default command for development
CMD ["bash"]