Skip to content

Commit e21b4ee

Browse files
committed
test docker env
1 parent 99093ad commit e21b4ee

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Dockerfile_raw

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM nvidia/cuda:10.0-base-ubuntu18.04
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
ENV PATH $(pwd)/usr/bin:"${PATH}"
6+
ENV NVIDIA_VISIBLE_DEVICES all
7+
ENV NVIDIA_DRIVER_CAPABILITIES utility,compute

docker-compose-raw.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: "2.4"
2+
services:
3+
app:
4+
container_name: swift_tensorflow_raw
5+
build:
6+
context: ./
7+
dockerfile: "Dockerfile_raw"
8+
working_dir: /usr/src/app
9+
volumes:
10+
- ./:/usr/src/app
11+
runtime: nvidia
12+
privileged: true
13+
networks:
14+
- app_net
15+
16+
networks:
17+
app_net:
18+
driver: bridge

0 commit comments

Comments
 (0)