Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
c6dfaaea
authored
Oct 10, 2025
by
Archer
Committed by
GitHub
Oct 10, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dockerfile (#5750)
* dockerfile * dockerfile * dockerfile
parent
2beb2170
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
projects/sandbox/Dockerfile
+13
-7
No files found.
projects/sandbox/Dockerfile
View file @
c6dfaaea
# --------- 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 C
ython
&&
\
cd
src/p
ython
&&
\
p
ip install
--no-cache-dir
-i
https://mirrors.aliyun.com/pypi/simple
-r
/app/requirements.txt
&&
\
p
ython 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment