Skip to content

Instantly share code, notes, and snippets.

@tkrajina
Created July 31, 2019 17:24
Show Gist options
  • Select an option

  • Save tkrajina/27819e613b540cb60fa464f3475b9f4d to your computer and use it in GitHub Desktop.

Select an option

Save tkrajina/27819e613b540cb60fa464f3475b9f4d to your computer and use it in GitHub Desktop.

Revisions

  1. tkrajina created this gist Jul 31, 2019.
    16 changes: 16 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # Build:
    # docker build -t sgfutils .
    # Run sgfutils:
    # docker run -v $(pwd):/sgfutils -it sgfutils
    FROM ubuntu:latest
    RUN apt-get -y update
    RUN apt-get -y install curl
    RUN apt-get -y install build-essential
    RUN apt-get -y install libssl-dev
    RUN curl https://homepages.cwi.nl/~aeb/go/sgfutils/sgfutils.tgz -o sgfutils.tgz
    RUN gzip -d sgfutils.tgz
    RUN tar -xvf sgfutils.tar
    RUN cd sgfutils-* && make
    RUN cp sgfutils-*/sgf* /usr/local/bin
    WORKDIR /sgfutils
    CMD ["/bin/bash"]