Update Dockerfile
Browse files- Dockerfile +1 -27
Dockerfile
CHANGED
|
@@ -1,27 +1 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
|
| 3 |
-
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && \
|
| 4 |
-
apk update && apk add --no-cache tzdata && \
|
| 5 |
-
pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple && \
|
| 6 |
-
pip install --upgrade pip
|
| 7 |
-
|
| 8 |
-
COPY ./requirements.txt /requirements.txt
|
| 9 |
-
|
| 10 |
-
RUN pip install --timeout 30 --user --no-cache-dir --no-warn-script-location -r requirements.txt
|
| 11 |
-
RUN pip install httpx
|
| 12 |
-
|
| 13 |
-
FROM python:3.11.7-alpine
|
| 14 |
-
|
| 15 |
-
ENV LOCAL_PKG="/root/.local"
|
| 16 |
-
COPY --from=build ${LOCAL_PKG} ${LOCAL_PKG}
|
| 17 |
-
COPY --from=build /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
| 18 |
-
|
| 19 |
-
RUN ln -sf ${LOCAL_PKG}/bin/* /usr/local/bin/ && echo "Asia/Shanghai" > /etc/timezone
|
| 20 |
-
|
| 21 |
-
WORKDIR /app
|
| 22 |
-
|
| 23 |
-
COPY . /app
|
| 24 |
-
|
| 25 |
-
EXPOSE 8000
|
| 26 |
-
|
| 27 |
-
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
FROM ghcr.io/sswest/groq-proxy:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|