Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -14,6 +14,11 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|
14 |
rm -rf /var/lib/apt/lists/*
|
15 |
COPY entrypoint.sh entrypoint.sh
|
16 |
|
|
|
|
|
|
|
|
|
|
|
17 |
RUN mkdir -p /data/db
|
18 |
RUN chown -R 1000:1000 /data
|
19 |
RUN useradd -m -u 1000 user
|
@@ -27,9 +32,5 @@ ENV HOME=/home/user \
|
|
27 |
COPY app app
|
28 |
RUN pip install -r app/requirements.txt
|
29 |
|
30 |
-
ENV GRADIO_PORT=$GRADIO_PORT
|
31 |
-
ENV MODEL_NAME=$MODEL_NAME
|
32 |
-
ENV QUANTIZATION=$QUANTIZATION
|
33 |
-
|
34 |
ENTRYPOINT ["/bin/bash"]
|
35 |
CMD ["entrypoint.sh"]
|
|
|
14 |
rm -rf /var/lib/apt/lists/*
|
15 |
COPY entrypoint.sh entrypoint.sh
|
16 |
|
17 |
+
RUN MODEL_NAME=$MODEL_NAME && export MODEL_NAME \
|
18 |
+
GRADIO_PORT=$GRADIO_PORT && && export GRADIO_PORT \
|
19 |
+
QUANTIZATION=$QUANTIZATION && && export QUANTIZATION && \
|
20 |
+
envsubst < "entrypoint.sh" > "entrypoint.sh"
|
21 |
+
|
22 |
RUN mkdir -p /data/db
|
23 |
RUN chown -R 1000:1000 /data
|
24 |
RUN useradd -m -u 1000 user
|
|
|
32 |
COPY app app
|
33 |
RUN pip install -r app/requirements.txt
|
34 |
|
|
|
|
|
|
|
|
|
35 |
ENTRYPOINT ["/bin/bash"]
|
36 |
CMD ["entrypoint.sh"]
|