add step build file

This commit is contained in:
mm644706215
2025-01-18 21:39:38 +08:00
parent 4766780404
commit 77e15d17e5
6 changed files with 473 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
version: '3.8'
services:
gromacs:
build:
context: .
dockerfile: Dockerfile.2.micromamba
args:
CACHEBUST: 1
BASE: "hotwa/gromacs"
TAG_VERSION: "module"
# env_file:
# - .env
container_name: cuda_2
pull_policy: if_not_present
ulimits:
memlock:
soft: -1
hard: -1
restart: unless-stopped
image: hotwa/gromacs:micromamba
# privileged: true
# cap_add:
# - ALL
# - CAP_SYS_PTRACE
# shm_size: '16gb'
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
- TMPDIR=/var/tmp
# ports:
# - "53322:2222"
# network_mode: host
# command: ["/usr/sbin/sshd", "-D"]
command: ["tail", "-f", "/dev/null"]
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]