Add dockerfile for pc, add install command

This commit is contained in:
Maschell 2020-10-03 15:17:52 +02:00
parent eb5528e0cf
commit 382e1009f2
3 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ libgui.layout
obj/
cmake-build-debug/
.idea/
cmake-build/

View File

@ -39,3 +39,6 @@ add_library(${PROJECT_NAME}
source/gui/system/SDLSystem.cpp
source/gui/video/SDL_FontCache.cpp
include/gui-sdl/gui/GuiFont.h source/gui/GuiFont.cpp)
install(TARGETS gui-sdl RUNTIME DESTINATION libs)
install(DIRECTORY include/ DESTINATION include)

10
Dockerfile.pc Normal file
View File

@ -0,0 +1,10 @@
FROM debian:sid-slim
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils ca-certificates && \
apt-get install -y --no-install-recommends build-essential make git && \
apt-get install -y --no-install-recommends cmake && \
apt-get install -y --no-install-recommends libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /project/cmake-build
WORKDIR /project/cmake-build