IXWebSocket/docker/Dockerfile.alpine

26 lines
749 B
Docker
Raw Permalink Normal View History

2021-02-15 20:16:55 +01:00
# Build time
#
# Build with
# docker build --ssh default -t ws .
#
# focal == ubuntu 2020.04
# groovy == ubuntu 2020.10
FROM ubuntu:groovy
RUN apt update
RUN apt-get -y install g++ cmake make automake ccache libtool flex bison pkg-config git python3 jq
RUN apt-get -y install libjemalloc-dev libssl-dev libmcrypt-dev mcrypt zlib1g lua5.1-dev uuid-dev libz-dev binutils-dev
RUN apt-get -y install libboost-dev libboost-test-dev libboost-program-options-dev libboost-all-dev libboost-regex-dev
RUN apt-get -y install ninja-build
COPY . /opt
WORKDIR /opt
2021-02-15 20:16:55 +01:00
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
RUN rm -rf build
RUN --mount=type=ssh ./build.sh
2021-02-15 20:16:55 +01:00
COPY /opt/build/ws/ws /usr/local/bin/ws
CMD ["/usr/local/bin/ws"]