✨ 添加多个开发环境的 Docker 配置,包括 Debian、Maven、LaTeX 和 Rust,移除旧的 Rust 配置
This commit is contained in:
3
latex/Containerfile
Normal file
3
latex/Containerfile
Normal 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
25
latex/compose.yaml
Normal 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:
|
||||
|
Reference in New Issue
Block a user