Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
@@ -15,12 +15,18 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|
15 |
COPY entrypoint.sh.template entrypoint.sh.template
|
16 |
|
17 |
|
|
|
|
|
18 |
ENV GRADIO_PORT=$GRADIO_PORT
|
19 |
ENV MODEL_NAME=$MODEL_NAME
|
20 |
ENV QUANTIZATION=$QUANTIZATION
|
|
|
|
|
|
|
21 |
RUN ls -ltr
|
22 |
RUN cat entrypoint.sh.template
|
23 |
-
RUN
|
|
|
24 |
RUN cat entrypoint.sh
|
25 |
|
26 |
RUN mkdir -p /data/db
|
|
|
15 |
COPY entrypoint.sh.template entrypoint.sh.template
|
16 |
|
17 |
|
18 |
+
RUN echo $QUANTIZATION
|
19 |
+
|
20 |
ENV GRADIO_PORT=$GRADIO_PORT
|
21 |
ENV MODEL_NAME=$MODEL_NAME
|
22 |
ENV QUANTIZATION=$QUANTIZATION
|
23 |
+
|
24 |
+
RUN echo $QUANTIZATION
|
25 |
+
|
26 |
RUN ls -ltr
|
27 |
RUN cat entrypoint.sh.template
|
28 |
+
RUN export $QUANTIZATION && export $MODEL_NAME && export $QUANTIZATION &&
|
29 |
+
envsubst '$GRADIO_PORT, $MODEL_NAME, $QUANTIZATION' < "entrypoint.sh.template" > "entrypoint.sh"
|
30 |
RUN cat entrypoint.sh
|
31 |
|
32 |
RUN mkdir -p /data/db
|