Spaces:
Runtime error
Runtime error
banao-tech
commited on
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -22,11 +22,16 @@ RUN conda create -n omni python=3.12 && \
|
|
22 |
echo "source activate omni" > ~/.bashrc
|
23 |
ENV CONDA_DEFAULT_ENV=omni
|
24 |
ENV PATH="/opt/conda/envs/omni/bin:$PATH"
|
|
|
25 |
# Set a writable directory for EasyOCR
|
26 |
ENV HOME=/usr/src/app
|
|
|
27 |
# Set the working directory in the container
|
28 |
WORKDIR /usr/src/app
|
29 |
|
|
|
|
|
|
|
30 |
# Copy project files and requirements
|
31 |
COPY . .
|
32 |
COPY requirements.txt /usr/src/app/requirements.txt
|
|
|
22 |
echo "source activate omni" > ~/.bashrc
|
23 |
ENV CONDA_DEFAULT_ENV=omni
|
24 |
ENV PATH="/opt/conda/envs/omni/bin:$PATH"
|
25 |
+
|
26 |
# Set a writable directory for EasyOCR
|
27 |
ENV HOME=/usr/src/app
|
28 |
+
|
29 |
# Set the working directory in the container
|
30 |
WORKDIR /usr/src/app
|
31 |
|
32 |
+
# Create EasyOCR writable directory
|
33 |
+
RUN mkdir -p /usr/src/app/.EasyOCR && chown -R 1000:1000 /usr/src/app/.EasyOCR
|
34 |
+
|
35 |
# Copy project files and requirements
|
36 |
COPY . .
|
37 |
COPY requirements.txt /usr/src/app/requirements.txt
|