-
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
0890841
commit d5aaffb
Showing
4 changed files
with
19 additions
and
11 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
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 |
---|---|---|
@@ -1,15 +1,23 @@ | ||
ARG JOBS = 2 | ||
ARG JOBS=2 | ||
|
||
FROM dokken/ubuntu-20.04 | ||
RUN apt install build-essentials gcc g++ make | ||
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list | ||
RUN apt update && apt install -y gcc g++ make cmake pkg-config \ | ||
libfreetype6-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libavdevice-dev \ | ||
libxxf86vm-dev libgl1-mesa-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev \ | ||
libssl-dev \ | ||
xvfb | ||
|
||
# Copy source code to docker | ||
COPY . /ors | ||
WORKDIR /ors/build | ||
# Copy source code to docker /ors folder | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
# Build and install ors | ||
RUN cmake . && make -j${JOBS} && make install | ||
# Build and make ors | ||
RUN rm -r build && cmake clean . && cmake -B build && cd build && make -j${JOBS} | ||
|
||
EXPOSE 8080 8000/udp | ||
# Update work dir | ||
WORKDIR build | ||
|
||
#ENTRYPOINT xvfb-run --server-args='-screen 0,1024*768*24' | ||
|
||
# Default workdir and command | ||
EXPOSE 8080 8000/udp |
Empty file.
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