Skip to content
Snippets Groups Projects
Commit c7fad122 authored by root's avatar root
Browse files

fixed dockerfile

parent 10c31cf1
No related branches found
No related tags found
No related merge requests found
FROM debian:latest FROM debian:latest
RUN apt-get update && RUN apt-get update \
apt-get install build-essential cmake libcurlpp-dev git ibjsoncpp-dev && apt-get install apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common -y
RUN apt-get install \
sudo \
build-essential cmake libcurl4-gnutls-dev git libjsoncpp-dev \
g++ \ g++ \
automake \ automake \
autoconf \ autoconf \
...@@ -20,27 +28,44 @@ apt-get install build-essential cmake libcurlpp-dev git ibjsoncpp-dev ...@@ -20,27 +28,44 @@ apt-get install build-essential cmake libcurlpp-dev git ibjsoncpp-dev
binutils-dev \ binutils-dev \
libjemalloc-dev \ libjemalloc-dev \
libssl-dev \ libssl-dev \
pkg-config -y && pkg-config -y \
mkdir /proxygenSrc && cd /proxygenSrc && wget
git clone https://github.com/facebook/proxygen.git &&
cd proxygen && RUN mkdir /proxygenSrc && cd /proxygenSrc \
https://github.com/facebook/folly.git && && git clone https://github.com/facebook/proxygen.git
cd folly &&
autoreconf -ivf &&
./configure && RUN cd /proxygenSrc/proxygen \
make march=native && && git clone https://github.com/facebook/folly.git
make check &&
make install && RUN cd /proxygenSrc/proxygen/folly/folly/test \
cd .. && && rm -rf gtest \
cd proxygen && && wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz \
./deps.sh && && tar zxf release-1.8.0.tar.gz \
./reinstall.sh && && rm -f release-1.8.0.tar.gz \
mkdir /pushGateway && && mv googletest-release-1.8.0 gtest
cd /pushGateway &&
git clone https://git.fairkom.net/chat/RocketChatMobilePushGateway.git && ENV CXXFLAGS "$CXXFLAGS -march=native"
cd RocketChatMobilePushGateway && ENV CFLAGS "$CFLAGS -march=native"
cmake . && ENV MAKEFLAGS="-j$[$(nproc) + 1]"
make march=native&&
./rocketChatMobilePushGateway RUN cd /proxygenSrc/proxygen/folly/folly \
&& autoreconf -ivf \
&& ./configure \
&& make \
&& make install \
&& cd ..
RUN cd /proxygenSrc/proxygen/proxygen \
&& ./deps.sh \
&& ./reinstall.sh
RUN mkdir /pushGateway \
&& cd /pushGateway \
&& git clone https://git.fairkom.net/chat/RocketChatMobilePushGateway.git \
&& cd RocketChatMobilePushGateway \
&& cmake . \
&& make \
&& ./rocketChatMobilePushGateway
EXPOSE 11000 EXPOSE 11000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment