chansung commited on
Commit
71388ca
1 Parent(s): d61a05e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -11
Dockerfile CHANGED
@@ -18,19 +18,9 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
18
  rm -rf /var/lib/apt/lists/*
19
  COPY entrypoint.sh.template entrypoint.sh.template
20
 
21
-
22
- RUN echo $QUANTIZATION
23
-
24
- ENV GRADIO_PORT=$GRADIO_PORT
25
- ENV MODEL_NAME=$MODEL_NAME
26
- ENV QUANTIZATION=$QUANTIZATION
27
-
28
- RUN echo $QUANTIZATION
29
-
30
  RUN ls -ltr
31
  RUN cat entrypoint.sh.template
32
- RUN export $QUANTIZATION && export $MODEL_NAME && export $QUANTIZATION && \
33
- envsubst '$GRADIO_PORT, $MODEL_NAME, $QUANTIZATION' < "entrypoint.sh.template" > "entrypoint.sh"
34
  RUN cat entrypoint.sh
35
 
36
  RUN mkdir -p /data/db
 
18
  rm -rf /var/lib/apt/lists/*
19
  COPY entrypoint.sh.template entrypoint.sh.template
20
 
 
 
 
 
 
 
 
 
 
21
  RUN ls -ltr
22
  RUN cat entrypoint.sh.template
23
+ RUN envsubst < "entrypoint.sh.template" > "entrypoint.sh"
 
24
  RUN cat entrypoint.sh
25
 
26
  RUN mkdir -p /data/db