-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #919 from Capsize-Games/devastator
Devastator
- Loading branch information
Showing
11 changed files
with
668 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.github | ||
.idea | ||
lib | ||
dist | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
FROM ubuntu:22.04 as base_image | ||
USER root | ||
ENV TZ=America/Denver | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \ | ||
&& apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt install software-properties-common -y \ | ||
&& add-apt-repository ppa:ubuntu-toolchain-r/test \ | ||
&& apt-get update \ | ||
&& apt install libtinfo6 -y \ | ||
&& apt-get install -y git \ | ||
&& apt-get install -y wget \ | ||
&& apt-get install -y software-properties-common \ | ||
&& apt-get install -y gcc-9 \ | ||
&& apt-get install -y g++-9 \ | ||
&& apt-get install -y bash \ | ||
&& apt-get install -y build-essential \ | ||
&& apt-get install -y libssl-dev \ | ||
&& apt-get install -y libffi-dev \ | ||
&& apt-get install -y libgl1-mesa-dev \ | ||
&& apt-get install -y fonts-noto-color-emoji \ | ||
&& apt-get install -y libportaudio2 \ | ||
&& apt-get install -y libxcb-cursor0 \ | ||
&& apt-get install -y espeak \ | ||
&& apt-get install -y xclip \ | ||
&& apt-get install -y libjpeg-dev \ | ||
&& apt-get install -y zlib1g-dev \ | ||
&& apt-get install -y libpng-dev \ | ||
&& apt-get install patchelf -y \ | ||
&& add-apt-repository ppa:deadsnakes/ppa -y \ | ||
&& apt update \ | ||
&& apt install python3.10 -y \ | ||
&& apt install python3.10-distutils -y \ | ||
&& apt install python3-pip -y \ | ||
&& apt install python3.10-tk -y \ | ||
&& apt install -y upx \ | ||
&& apt-get install patchelf -y \ | ||
&& apt-get install ccache -y \ | ||
&& apt-get install -y libxcb-xinerama0 \ | ||
&& apt-get install qt6-qpa-plugins -y \ | ||
&& apt-get install libgl1-mesa-glx libglib2.0-0 libsm6 libxext6 libxrender-dev libxcb-xinerama0 -y \ | ||
&& apt-get install -y qt6-base-dev \ | ||
&& apt-get install -y gstreamer1.0-gl \ | ||
&& rm -rf /var/lib/apt/lists/ \ | ||
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
FROM base_image as install_requirements | ||
USER root | ||
WORKDIR /app | ||
RUN pip install nvidia-pyindex | ||
WORKDIR /app | ||
RUN pip install --upgrade pip | ||
RUN pip install --upgrade setuptools | ||
RUN pip install --upgrade wheel | ||
RUN pip install requests aihandler cmake | ||
RUN pip uninstall torch torchvision -y | ||
RUN pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118 --upgrade | ||
|
||
FROM install_requirements as fix_tcl | ||
USER root | ||
RUN ln -s /usr/share/tcltk/tcl8.6 /usr/share/tcltk/tcl8 | ||
|
||
FROM fix_tcl as install_apps | ||
RUN python3 -c "from accelerate.utils import write_basic_config; write_basic_config(mixed_precision='fp16')" | ||
RUN pip uninstall nvidia-cublas-cu11 nvidia-cublas-cu12 -y | ||
RUN pip uninstall xformers -y | ||
|
||
FROM install_apps as more_env | ||
WORKDIR /app | ||
ENV PATH="/usr/local/lib/python3.10:/usr/local/lib/python3.10/bin:${PATH}" | ||
ENV PYTHONPATH="/usr/local/lib/python3.10:/usr/local/lib/python3.10/bin:${PYTHONPATH}" | ||
RUN pip install pyinstaller | ||
|
||
FROM more_env as build_files | ||
WORKDIR /app | ||
COPY dobuild.py dobuild.py | ||
COPY build.sh build.sh | ||
COPY setup.py setup.py | ||
|
||
|
||
FROM build_files as build_airunner | ||
RUN git clone https://github.com/Capsize-Games/airunner.git /app/airunner \ | ||
&& cd /app/airunner \ | ||
&& git checkout master \ | ||
&& git pull \ | ||
&& python3 -m pip install . | ||
|
||
FROM build_airunner as build_airunner_executable | ||
COPY build.airunner.linux.prod.spec build.airunner.linux.prod.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.