forked from 9rum/flatflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (32 loc) · 1.08 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM quay.io/pypa/manylinux_2_28_x86_64
# This should be consistent with the gRPC version in requirements.txt.
ARG GRPC_VERSION=1.67.1
WORKDIR /workspace
RUN git clone -b v${GRPC_VERSION} https://github.com/grpc/grpc.git && \
pushd grpc && \
git submodule update --init --recursive && \
mkdir -p cmake/build && \
pushd cmake/build && \
cmake -DCMAKE_BUILD_TYPE=Release \
-DgRPC_INSTALL=ON \
-DgRPC_BUILD_GRPC_CSHARP_PLUGIN=OFF \
-DgRPC_BUILD_GRPC_NODE_PLUGIN=OFF \
-DgRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN=OFF \
-DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF \
-DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF ../.. && \
make -j4 && \
make install && \
popd && \
popd && \
rm -rf grpc
WORKDIR /workspace/flatflow
COPY . .
RUN for PYTHON_VERSION in 3.9 3.10 3.11 3.12 3.13; \
do \
python$PYTHON_VERSION -m build -w && \
rm -rf build flatflow.egg-info; \
done && \
auditwheel repair dist/*
# To upload to PyPI, run the commands commented out below.
# RUN pipx install twine && \
# twine upload wheelhouse/*