2018-09-10 02:27:44 +00:00
|
|
|
FROM ekidd/rust-musl-builder
|
|
|
|
|
|
|
|
RUN sudo apt-get update -y && sudo apt-get install -y \
|
|
|
|
cmake \
|
|
|
|
libgles2-mesa-dev \
|
|
|
|
libglew-dev \
|
|
|
|
libglfw3-dev \
|
|
|
|
libglm-dev \
|
|
|
|
libgtk-3-dev
|
|
|
|
|
2018-09-10 02:31:46 +00:00
|
|
|
RUN git clone https://github.com/naelstrof/slop.git
|
|
|
|
RUN (cd slop; cmake -DCMAKE_INSTALL_PREFIX="/usr" ./ && make && sudo make install)
|
|
|
|
|
2018-09-10 02:27:44 +00:00
|
|
|
COPY . ./
|
|
|
|
RUN sudo chown -R rust:rust .
|
|
|
|
|
|
|
|
CMD cargo build --release
|