添加多个开发环境的 Docker 配置,包括 Debian、Maven、LaTeX 和 Rust,移除旧的 Rust 配置

This commit is contained in:
2025-05-03 15:29:58 +08:00
parent 3f454b9805
commit aca5f52bc2
11 changed files with 101 additions and 19 deletions

3
latex/Containerfile Normal file
View File

@@ -0,0 +1,3 @@
# Dockerfile示例
FROM texlive/texlive:latest
RUN apt-get update && apt-get install -y git wget openssh-client netcat-openbsd bash-completion vim && apt-get clean && rm -rf /var/lib/apt/lists/*

25
latex/compose.yaml Normal file
View File

@@ -0,0 +1,25 @@
services:
latex-workspace:
# image: texlive/texlive:latest
image: localhost/latex-env:v1
build:
context: .
dockerfile: Containerfile
# image: localhost/latex-env:latest
container_name: latex-workspace
hostname: latex-devcontainer
volumes:
- /workspace/latex-projects:/workspace
- latex-root:/root
working_dir: /workspace
command: tail -f /dev/null # Keep the container running
environment:
- TERM=xterm-256color
restart: unless-stopped
ports:
- 8000:8000
volumes:
latex-root:
#latex-workspace: