ccprojects commited on
Commit
e4e2cb6
·
verified ·
1 Parent(s): a9dbd96

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -6,17 +6,21 @@ RUN apt-get update && apt-get install -y \
6
 
7
  WORKDIR /app
8
 
 
9
  RUN git clone https://github.com/GlobedGD/globed2.git
 
10
 
 
11
  WORKDIR /app/globed2
12
-
13
- # Patch the CMakeLists.txt to allow Linux
14
  RUN sed -i '/Unsupported operating system/d' CMakeLists.txt \
15
  && sed -i '/if (NOT (${CMAKE_SYSTEM_NAME}/,/endif()/d' CMakeLists.txt
16
 
 
 
 
 
17
  RUN mkdir build
18
  WORKDIR /app/globed2/build
19
-
20
  RUN cmake .. && make -j$(nproc)
21
 
22
  EXPOSE 4000
 
6
 
7
  WORKDIR /app
8
 
9
+ # Clone Globed2 and Geode SDK
10
  RUN git clone https://github.com/GlobedGD/globed2.git
11
+ RUN git clone https://github.com/geode-sdk/geode.git
12
 
13
+ # Patch unsupported OS in CMakeLists.txt
14
  WORKDIR /app/globed2
 
 
15
  RUN sed -i '/Unsupported operating system/d' CMakeLists.txt \
16
  && sed -i '/if (NOT (${CMAKE_SYSTEM_NAME}/,/endif()/d' CMakeLists.txt
17
 
18
+ # Set GEODE_SDK path
19
+ ENV GEODE_SDK=/app/geode
20
+
21
+ # Build globed2
22
  RUN mkdir build
23
  WORKDIR /app/globed2/build
 
24
  RUN cmake .. && make -j$(nproc)
25
 
26
  EXPOSE 4000