ainda não builda

This commit is contained in:
Glauber Ferreira 2022-05-19 01:41:58 -03:00
commit 375d6de1f8
2 changed files with 18 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM alpine:3.15
RUN apk add --no-cache bash
VOLUME /out
COPY build.sh /build.sh
RUN chmod +x /build.sh
ENTRYPOINT ["/bin/bash", "/build.sh"]

12
build.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e
apk add git build-base clang make cmake python3 perl
mkdir -p /build
cd /build
git clone --recursive https://github.com/cuberite/cuberite.git
cd cuberite
mkdir Release
cd Release
cmake -DCMAKE_BUILD_TYPE=RELEASE -DNO_NATIVE_OPTIMIZATION=1 ..
make -j`nproc`
ls -lah