mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-16 16:04:34 +00:00
@@ -1,21 +1,27 @@
|
|||||||
# --------- install dependence -----------
|
# --------- install dependence -----------
|
||||||
FROM python:3.11-alpine AS python_base
|
FROM python:3.11-alpine AS python_base
|
||||||
ENV VERSION_RELEASE=Alpine3.11
|
# 安装make和g++以及libseccomp开发包
|
||||||
# 安装make和g++
|
RUN apk add --no-cache make g++ tar wget gperf automake libtool linux-headers libseccomp-dev
|
||||||
RUN apk add --no-cache make g++ tar wget gperf automake libtool linux-headers
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY projects/sandbox/requirements.txt /app/requirements.txt
|
COPY projects/sandbox/requirements.txt /app/requirements.txt
|
||||||
|
|
||||||
|
# 先安装Cython和其他Python依赖
|
||||||
|
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple Cython && \
|
||||||
|
pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple -r /app/requirements.txt
|
||||||
|
|
||||||
|
# 下载、编译并安装libseccomp及其Python绑定
|
||||||
|
ENV VERSION_RELEASE=2.5.5
|
||||||
RUN wget https://github.com/seccomp/libseccomp/releases/download/v2.5.5/libseccomp-2.5.5.tar.gz && \
|
RUN wget https://github.com/seccomp/libseccomp/releases/download/v2.5.5/libseccomp-2.5.5.tar.gz && \
|
||||||
tar -zxvf libseccomp-2.5.5.tar.gz && \
|
tar -zxvf libseccomp-2.5.5.tar.gz && \
|
||||||
cd libseccomp-2.5.5 && \
|
cd libseccomp-2.5.5 && \
|
||||||
./configure --prefix=/usr && \
|
./configure --prefix=/usr && \
|
||||||
make && \
|
make && \
|
||||||
make install && \
|
make install && \
|
||||||
pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple Cython && \
|
cd src/python && \
|
||||||
pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple -r /app/requirements.txt && \
|
python setup.py install && \
|
||||||
cd /app/libseccomp-2.5.5/src/python && \
|
cd /app && \
|
||||||
python setup.py install
|
rm -rf libseccomp-2.5.5 libseccomp-2.5.5.tar.gz
|
||||||
|
|
||||||
|
|
||||||
FROM node:20.14.0-alpine AS install
|
FROM node:20.14.0-alpine AS install
|
||||||
|
Reference in New Issue
Block a user