Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -17,10 +17,10 @@ ENV HOME=/home/user \
|
|
17 |
WORKDIR $HOME/app
|
18 |
|
19 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
20 |
-
|
21 |
|
22 |
# Copy the configuration file into the container at /app
|
23 |
-
COPY --chown=user config.yaml .
|
24 |
|
25 |
# Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
|
26 |
RUN pip install --no-cache-dir --upgrade pip
|
@@ -29,4 +29,6 @@ RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
|
|
29 |
|
30 |
EXPOSE 4000
|
31 |
|
|
|
|
|
32 |
ENTRYPOINT ["litellm", "--config", "config.yaml", "--port", "4000", "--run_gunicorn"]
|
|
|
17 |
WORKDIR $HOME/app
|
18 |
|
19 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
20 |
+
COPY --chown=user . $HOME/app
|
21 |
|
22 |
# Copy the configuration file into the container at /app
|
23 |
+
#COPY --chown=user config.yaml .
|
24 |
|
25 |
# Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
|
26 |
RUN pip install --no-cache-dir --upgrade pip
|
|
|
29 |
|
30 |
EXPOSE 4000
|
31 |
|
32 |
+
RUN chmod +x entrypoint.sh
|
33 |
+
|
34 |
ENTRYPOINT ["litellm", "--config", "config.yaml", "--port", "4000", "--run_gunicorn"]
|