forked from OpenRCT2/OpenRCT2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c49d45
commit b20ac61
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bin/ | ||
build/ | ||
lib/ | ||
obj/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Build OpenRCT2 using build environment image | ||
FROM openrct2/openrct2:ubuntu_amd64 AS build-env | ||
WORKDIR /openrct2 | ||
COPY . ./ | ||
RUN mkdir build \ | ||
&& cd build \ | ||
&& cmake .. -G Ninja -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/openrct2-install/usr -DCMAKE_INSTALL_LIBDIR=/openrct2-install/usr/lib \ | ||
&& ninja -k0 install | ||
|
||
# Build runtime image | ||
FROM ubuntu:16.04 | ||
RUN apt-get update | ||
RUN apt-get -y upgrade | ||
RUN apt-get install --no-install-recommends -y rsync ca-certificates libjansson4 libpng12-0 libzip4 libcurl3 libfreetype6 libfontconfig1 | ||
|
||
# Install OpenRCT2 | ||
COPY --from=build-env /openrct2-install /openrct2-install | ||
RUN rsync -a /openrct2-install/* / \ | ||
&& rm -rf /openrct2-install | ||
|
||
# Done | ||
ENTRYPOINT ["openrct2-cli"] |