forked from SFML/SFML
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
42 lines (31 loc) · 897 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
ARG OS=ubuntu:24.04
ARG COMPILER=gcc-14
ARG PRESET=vrdev_gcc
FROM ${OS} AS setup-cpp
ARG COMPILER
RUN \
apt-get update \
&& apt-get install -y --no-install-recommends nodejs npm git lld \
&& apt-get install -y --no-install-recommends libxrandr-dev libxi-dev libxcursor-dev libglfw3-dev libudev-dev libfreetype-dev libogg-dev libvorbis-dev libflac-dev \
&& npm install -g [email protected] \
&& setup-cpp \
--compiler ${COMPILER} \
--cmake true \
--ninja true \
--ccache true \
--make true \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/*
RUN \
mkdir -p /root/work
WORKDIR /root/work
RUN \
git clone https://github.com/vittorioromeo/VRSFML.git
WORKDIR /root/work/VRSFML
RUN \
git checkout master
ARG PRESET
ENV PRESET=${PRESET}
RUN \
bash -c 'source ~/.cpprc && cmake --preset ${PRESET} && cmake --build build_${PRESET}'