Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +12 -1
Dockerfile
CHANGED
@@ -12,10 +12,21 @@ RUN apt-get update && apt-get install -y \
|
|
12 |
|
13 |
RUN git clone https://gitlab.com/abijithe61/yol-ov-4-tf-lite-for-generic-invoice-reader.git .
|
14 |
|
15 |
-
COPY requirements.txt ./
|
16 |
|
17 |
RUN pip install -r requirements.txt --no-cache-dir
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
# COPY models/checkpoints ./models/checkpoints
|
20 |
# COPY core ./core
|
21 |
# COPY data ./data
|
|
|
12 |
|
13 |
RUN git clone https://gitlab.com/abijithe61/yol-ov-4-tf-lite-for-generic-invoice-reader.git .
|
14 |
|
15 |
+
# COPY requirements.txt ./
|
16 |
|
17 |
RUN pip install -r requirements.txt --no-cache-dir
|
18 |
|
19 |
+
RUN useradd -m -u 1000 user
|
20 |
+
|
21 |
+
USER user
|
22 |
+
|
23 |
+
ENV HOME=/home/user \
|
24 |
+
PATH=/home/user/.local/bin:$PATH
|
25 |
+
|
26 |
+
WORKDIR $HOME/app
|
27 |
+
|
28 |
+
COPY --chown=user . $HOME/app
|
29 |
+
|
30 |
# COPY models/checkpoints ./models/checkpoints
|
31 |
# COPY core ./core
|
32 |
# COPY data ./data
|