Skip to content

Commit

Permalink
feat: update build configuration for Release mode and enhance README …
Browse files Browse the repository at this point in the history
…with correct download links; add Dockerfile for containerization
  • Loading branch information
MasterLaplace committed Nov 17, 2024
1 parent 4db6ccf commit 0873f45
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Configure and Build
run: |
mkdir build && cd build
cmake .. && cmake --build .
cmake .. && cmake --build . --config Release
build_checker_ubuntu:
name: Build Checker Ubuntu
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Configure and Build
run: |
mkdir build && cd build
cmake .. && cmake --build .
cmake .. && cmake --build . --config Release
build_checker_macos:
name: Build Checker MacOS
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
<img
src="https://img.shields.io/badge/Linux-blue?style=for-the-badge"
alt="Linux deb"
href="https://github.com/MasterLaplace/Flakkari/releases/download/latest/flakkari-linux.deb"
href="https://github.com/MasterLaplace/Flakkari/releases/latest/download/flakkari-linux.deb"
> &#xa0; | &#xa0;
<img
src="https://img.shields.io/badge/Windows-blue?style=for-the-badge"
alt="Windows"
href="https://github.com/MasterLaplace/Flakkari/releases/download/latest/flakkari-win64.exe"
href="https://github.com/MasterLaplace/Flakkari/releases/latest/download/flakkari-win64.exe"
> &#xa0; | &#xa0;
<img
src="https://img.shields.io/badge/MacOS-blue?style=for-the-badge"
alt="MacOS"
href="https://github.com/MasterLaplace/Flakkari/releases/download/latest/flakkari-macos.pkg"
href="https://github.com/MasterLaplace/Flakkari/releases/latest/download/flakkari-macos.pkg"
>
</h3>
</p>
Expand Down Expand Up @@ -129,7 +129,7 @@ $ docker --version
$ docker build -t flakkari .

# run docker image
$ docker run Flakkari -p 4242:4242
$ docker run -p 8081:8081 -it flakkari

# list docker images
$ docker ps
Expand Down
24 changes: 24 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM ubuntu:latest

# Expose ports
EXPOSE 8081/tcp
EXPOSE 8081/udp

# Set workdir to folder /app
WORKDIR /app

# Update package updater
RUN apt-get update -y

# Install needed packages
RUN apt-get install sudo -y
RUN sudo apt-get install -y libtbb-dev xorg-dev libglu1-mesa-dev libxrandr-dev curl tar build-essential wget

# Add github.com to known hosts
RUN wget https://github.com/MasterLaplace/Flakkari/releases/latest/download/flakkari-linux.deb

RUN dpkg -i flakkari-linux.deb
RUN mkdir Games

# Launch the generated executable
CMD ["sh", "-c", "flakkari", "Games/", "localhost", "8081"]

0 comments on commit 0873f45

Please sign in to comment.