cgr28 commited on
Commit
d572bb4
1 Parent(s): 9b9bd98

installed pytorch

Browse files
Files changed (5) hide show
  1. Dockerfile +4 -2
  2. docker-container.png +0 -0
  3. docker-run.png +0 -0
  4. main.py +3 -1
  5. requirements.txt +16 -0
Dockerfile CHANGED
@@ -1,5 +1,7 @@
1
- FROM python:alpine
2
  COPY . /app
3
  WORKDIR /app
4
 
5
- CMD python -m http.server 8000
 
 
 
1
+ FROM python:3.11
2
  COPY . /app
3
  WORKDIR /app
4
 
5
+ RUN pip install -r requirements.txt
6
+
7
+ CMD python3 main.py
docker-container.png CHANGED
docker-run.png CHANGED
main.py CHANGED
@@ -1 +1,3 @@
1
- print("Hello World!")
 
 
 
1
+ import torch
2
+ x = torch.rand(5, 3)
3
+ print(x)
requirements.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ certifi==2022.12.7
2
+ charset-normalizer==3.1.0
3
+ filelock==3.10.6
4
+ idna==3.4
5
+ Jinja2==3.1.2
6
+ MarkupSafe==2.1.2
7
+ mpmath==1.3.0
8
+ networkx==3.0
9
+ numpy==1.24.2
10
+ Pillow==9.4.0
11
+ requests==2.28.2
12
+ sympy==1.11.1
13
+ torch==2.0.0
14
+ torchvision==0.15.1
15
+ typing-extensions==4.5.0
16
+ urllib3==1.26.15