nlztrk commited on
Commit
e53e775
1 Parent(s): 498be0a

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvcr.io/nvidia/pytorch:22.12-py3
2
+ RUN export contver=1.03
3
+ RUN pip3 install --upgrade \
4
+ scikit-learn \
5
+ ipywidgets \
6
+ polars \
7
+ catboost \
8
+ lightgbm \
9
+ transformers \
10
+ datasets \
11
+ sentence-transformers \
12
+ zemberek-python \
13
+ gradio \
14
+ seaborn
15
+
16
+ # Gradio Specific Routine
17
+
18
+ # Set up a new user named "user" with user ID 1000
19
+ RUN useradd -m -u 1000 user
20
+ # Switch to the "user" user
21
+ USER user
22
+ # Set home to the user's home directory
23
+ ENV HOME=/home/user \
24
+ PATH=/home/user/.local/bin:$PATH
25
+ # Set the working directory to the user's home directory
26
+ WORKDIR $HOME/app
27
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
28
+ COPY --chown=user . $HOME/app
29
+
30
+ CMD ["python", "git_sync.py"]
31
+ CMD ["python", "app.py"]