meg HF Staff commited on
Commit
df6f1af
·
verified ·
1 Parent(s): 0d97cbe

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -2,8 +2,8 @@
2
 
3
  FROM python:3.9
4
 
5
- #RUN useradd -m -u 1000 user
6
- #USER user
7
  ENV PATH="/home/user/.local/bin:/opt/conda/bin:$PATH"
8
 
9
  #WORKDIR /app
@@ -63,11 +63,11 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
63
  #COPY --chown=user . /app
64
  #COPY . /app
65
  COPY ./out /out
66
- RUN chmod 777 -R /out
67
 
68
- #RUN chmod +x /out
69
  COPY ./out/addition_train /out/
70
- RUN chmod 777 /teaching_arithmetic/train.py
71
  COPY ./train.sh /train.sh
72
  RUN chmod +x /train.sh
73
 
 
2
 
3
  FROM python:3.9
4
 
5
+ RUN useradd -m -u 1000 user
6
+ USER user
7
  ENV PATH="/home/user/.local/bin:/opt/conda/bin:$PATH"
8
 
9
  #WORKDIR /app
 
63
  #COPY --chown=user . /app
64
  #COPY . /app
65
  COPY ./out /out
66
+ #RUN chmod 777 -R /out
67
 
68
+ RUN chmod +x /out
69
  COPY ./out/addition_train /out/
70
+ RUN chmod +x /teaching_arithmetic/train.py
71
  COPY ./train.sh /train.sh
72
  RUN chmod +x /train.sh
73