Skip to content

Commit 6cf1363

Browse files
committed
initial commit
0 parents  commit 6cf1363

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Docker最初のサンプル
2+
3+
実行コマンド
4+
5+
```bash
6+
docker build -t mypython:0.1 .
7+
docker run -t --rm -v ${PWD}:/mnt mypython:0.1 python hello.py
8+
```

dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM python:3.7.10-slim
2+
3+
RUN pip install numpy
4+
5+
WORKDIR /mnt

hello.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import numpy as np
2+
3+
print('hello world!\n')
4+
print('sin(x)=', np.sin(1.0))

0 commit comments

Comments
 (0)