forked from KenyonY/openai-forward
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (22 loc) · 792 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
26
FROM python:3.10-slim
LABEL maintainer="K.Y"
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV TZ=Asia/Shanghai
RUN apt update && \
apt install -y tzdata && \
ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata && \
apt clean && \
rm -rf /var/lib/apt/lists/*
COPY . /home/openai-forward
WORKDIR /home/openai-forward
RUN apt-get update && \
apt-get install -y patch g++ gcc libstdc++6 libtcmalloc-minimal4 libleveldb-dev cmake make build-essential && \
pip3 install -e . --no-cache-dir && \
apt-get remove -y patch g++ gcc cmake make build-essential && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
EXPOSE 8000
ENTRYPOINT ["python3", "-m", "openai_forward.__main__", "run"]