drakosfire commited on
Commit
9f83322
1 Parent(s): f3a9052

updated Dockerfile to COPY local files

Browse files
Files changed (2) hide show
  1. .dockerignore +3 -0
  2. Dockerfile +4 -5
.dockerignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ models
2
+ MerchantBotCLI
3
+ output
Dockerfile CHANGED
@@ -17,21 +17,20 @@ FROM base-layer as final-layer
17
 
18
  RUN useradd -m -u 1000 user
19
 
20
- # mkdir -p /home/user/.cache && \
21
- # chmod 777 /home/user/.cache && \
22
- # chown -R user:user /home/user/app/
23
  # Set environment variables for copied builds of cuda and flash-attn in /venv
24
 
25
-
26
  ENV PATH=/usr/local/cuda-12.4/bin:/venv/bin:${PATH}
27
  ENV LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64:${LD_LIBRARY_PATH}
28
 
29
  ENV VIRTUAL_ENV=/venv
30
  RUN python3 -m venv $VIRTUAL_ENV
31
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
32
- # Set working directory and user
 
 
33
  WORKDIR /home/user/app
34
 
 
35
  USER user
36
 
37
  # Set the entrypoint
 
17
 
18
  RUN useradd -m -u 1000 user
19
 
 
 
 
20
  # Set environment variables for copied builds of cuda and flash-attn in /venv
21
 
 
22
  ENV PATH=/usr/local/cuda-12.4/bin:/venv/bin:${PATH}
23
  ENV LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64:${LD_LIBRARY_PATH}
24
 
25
  ENV VIRTUAL_ENV=/venv
26
  RUN python3 -m venv $VIRTUAL_ENV
27
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
28
+
29
+ # Copy local files to working directory and activate user
30
+ COPY . /home/user/app/
31
  WORKDIR /home/user/app
32
 
33
+
34
  USER user
35
 
36
  # Set the entrypoint