Skip to content

Commit

Permalink
Docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisor committed Aug 30, 2024
1 parent 2c7e709 commit fbc28ce
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM ubuntu:22.04 as pbrt

ENV DEBIAN_FRONTEND=noninteractive

# Update the package lists
RUN apt-get update

# Install any necessary packages for building the application
RUN apt-get install -y build-essential git cmake

# Set the working directory
WORKDIR /app
RUN git clone --recursive https://github.com/huongoss/tev-docker.git

RUN apt-get install -y xorg-dev libglu1-mesa-dev zlib1g-dev zenity

# Set the working directory
WORKDIR /app/tev

RUN cmake . -B build && \
cmake --build build --config Release -j && \
cp build/tev /usr/local/bin/


# Specify the command to run when the container starts
ENTRYPOINT [ "/usr/local/bin/tev" ]
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,8 @@ $ cpack --config build/CPackConfig.cmake
## License

__tev__ is available under the BSD 3-clause license, which you can find in the `LICENSE.txt` file. [TL;DR](https://tldrlegal.com/license/bsd-3-clause-license-(revised)).

## Docker
docker build . -t tev
xhost +local:
docker run --network=host --pid=host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro --rm tev

0 comments on commit fbc28ce

Please sign in to comment.