11 lines
449 B
Plaintext
Executable File
11 lines
449 B
Plaintext
Executable File
# Install Python dependencies
|
|
RUN python3 -m pip install --no-cache-dir setuptools wheel
|
|
|
|
RUN apt-get install -y libfreetype6-dev libpng-dev pkg-config libffi-dev libssl-dev
|
|
COPY requirements.txt /requirements.txt
|
|
RUN if [ "$BUILD_ARCH" != "amd64" ]; then \
|
|
grep -v flair /requirements.txt > /requirements-noflair.txt; \
|
|
mv /requirements-noflair.txt /requirements.txt; \
|
|
fi
|
|
RUN python3 -m pip install --no-cache-dir -r /requirements.txt
|