2018-11-07 11:45:17 -08:00
|
|
|
FROM debian:stretch
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -y install g++
|
|
|
|
RUN apt-get -y install libssl-dev
|
|
|
|
RUN apt-get -y install gdb
|
|
|
|
RUN apt-get -y install screen
|
|
|
|
RUN apt-get -y install procps
|
|
|
|
RUN apt-get -y install lsof
|
2018-12-09 17:56:20 -08:00
|
|
|
RUN apt-get -y install libz-dev
|
2018-12-14 16:28:11 -08:00
|
|
|
RUN apt-get -y install vim
|
2019-01-01 16:34:05 -08:00
|
|
|
RUN apt-get -y install make
|
|
|
|
RUN apt-get -y install cmake
|
2019-03-13 23:09:45 -07:00
|
|
|
RUN apt-get -y install curl
|
|
|
|
RUN apt-get -y install python
|
|
|
|
|
|
|
|
# debian strech cmake is too old for building with Docker
|
|
|
|
COPY makefile .
|
|
|
|
RUN ["make", "install_cmake_for_linux"]
|
2018-11-07 11:45:17 -08:00
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2019-03-13 23:09:45 -07:00
|
|
|
ARG CMAKE_BIN_PATH=/tmp/cmake/cmake-3.14.0-rc4-Linux-x86_64/bin
|
|
|
|
ENV PATH="${CMAKE_BIN_PATH}:${PATH}"
|
|
|
|
|
|
|
|
# RUN ["make"]
|
2019-02-21 21:24:53 -08:00
|
|
|
|
|
|
|
EXPOSE 8765
|
2019-03-13 23:09:45 -07:00
|
|
|
CMD ["/ws/ws", "transfer", "--port", "8765", "--host", "0.0.0.0"]
|