update dockerfile

This commit is contained in:
Michael Zhang 2018-09-10 03:44:10 -05:00
parent 45827f5124
commit d725f2cd16
No known key found for this signature in database
GPG key ID: A1B65B603268116B
2 changed files with 3 additions and 22 deletions

View file

@ -1,16 +1,5 @@
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
RUN git clone https://github.com/naelstrof/slop.git
RUN (cd slop; cmake -DCMAKE_INSTALL_PREFIX="/usr" ./ && make && sudo make install)
COPY . ./
RUN sudo chown -R rust:rust .

View file

@ -3,18 +3,10 @@ screenshot
Screenshot-capturing utility.
Bindings for `slop` have been generated by `bindgen`.
Installation
------------
You need `slop` (select operation, not the ruby one) installed in order to build this.
Make sure you have cargo installed. Then run
```
cargo install --git https://github.com/iptq/screenshot
```
Check out the releases page.
Example Integration
-------------------
@ -22,7 +14,7 @@ Example Integration
```bash
#!/bin/bash
SCREENSHOT=$HOME/.cargo/bin/screenshot
$SCREENSHOT $1 --clip --output "$HOME/Screenshots/Screenshot_%Y%m%d-%H:%M:%S.png"
$SCREENSHOT $1 --clipboard --output "$HOME/Screenshots/Screenshot_%Y%m%d-%H:%M:%S.png"
```
Building from Source
@ -41,4 +33,4 @@ Contact
Author: Michael Zhang
License: GNU GPL v3
License: MIT