ZeroTraceX commited on
Commit
fc96a0e
·
verified ·
1 Parent(s): 3002d20

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -10
Dockerfile CHANGED
@@ -26,17 +26,11 @@ RUN ls -la $TESSDATA_PREFIX
26
  # Create user and set up environment
27
  RUN useradd -m -u 1000 user && \
28
  chown -R user:user /usr/share/tesseract-ocr/4.00/tessdata
29
- # Create /app directory
30
- RUN mkdir /app
31
-
32
-
33
- # Copy.env file
34
- COPY .env /app/.env
35
 
36
- # Load environment variables from.env file
37
- RUN bash -c "source /app/.env && git clone $GIT_REPO_URL /app"
38
-
39
- #RUN git clone $Access_key /app
40
  WORKDIR /app
41
 
42
  # Switch to user for pip installations
 
26
  # Create user and set up environment
27
  RUN useradd -m -u 1000 user && \
28
  chown -R user:user /usr/share/tesseract-ocr/4.00/tessdata
 
 
 
 
 
 
29
 
30
+ RUN mkdir /app
31
+ ARG GIT_REPO_URL
32
+ RUN echo $GIT_REPO_URL
33
+ RUN git clone $Access_key /app
34
  WORKDIR /app
35
 
36
  # Switch to user for pip installations