prod & dev docker containers

This commit is contained in:
Maxime Van Hees
2025-10-30 14:07:08 +01:00
parent 592b6c1ea9
commit 9f7ebc6e57
5 changed files with 201 additions and 2 deletions

30
Dockerfile.dev Normal file
View File

@@ -0,0 +1,30 @@
# Development Dockerfile with full toolchain
FROM rust:1.90
# Install development tools
RUN apt-get update && apt-get install -y \
pkg-config \
libssl-dev \
protobuf-compiler \
redis-tools \
netcat-openbsd \
curl \
vim \
&& rm -rf /var/lib/apt/lists/*
# Install cargo tools for development
RUN cargo install cargo-watch cargo-edit
WORKDIR /app
# Copy project files
COPY . .
# Pre-build dependencies (optional, for faster startup)
RUN cargo build
# Expose ports
EXPOSE 6379 8080
# Development command with hot reload
CMD ["cargo", "run", "--", "--dir", "/data", "--port", "6379", "--enable-rpc", "--rpc-port", "8080"]