-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathDockerfile
25 lines (19 loc) · 852 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM python:3.11
# Update packagtes, install necessary tools into the base image, clean up and clone git repository
RUN apt update \
&& apt install -y --no-install-recommends --no-install-suggests git apache2 \
&& apt autoremove -y --purge \
&& apt clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& git clone https://github.com/ParisNeo/ollama_proxy_server.git
# Change working directory to cloned git repository
WORKDIR ollama_proxy_server
# Install all needed requirements
RUN pip3 install -e .
# Copy config.ini and authorized_users.txt into project working directory
COPY config.ini .
COPY authorized_users.txt .
# Start the proxy server as entrypoint
ENTRYPOINT ["ollama_proxy_server"]
# Set command line parameters
CMD ["--config", "./config.ini", "--users_list", "./authorized_users.txt", "--port", "8080"]