mirror of
https://github.com/OPSnet/Ocelot.git
synced 2026-01-16 18:04:19 -05:00
37 lines
774 B
Docker
37 lines
774 B
Docker
FROM debian:stretch-slim
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install --no-install-recommends -y \
|
|
build-essential \
|
|
cmake \
|
|
default-libmysqlclient-dev \
|
|
libboost-iostreams-dev \
|
|
libboost-system-dev \
|
|
libev-dev \
|
|
libjemalloc-dev \
|
|
libmysql++-dev \
|
|
pkg-config
|
|
|
|
COPY . /srv
|
|
WORKDIR /srv
|
|
|
|
RUN mkdir build \
|
|
&& cd build \
|
|
&& cmake .. \
|
|
&& make \
|
|
&& mv /srv/build/ocelot /srv/ocelot \
|
|
&& mv /srv/ocelot.conf.dist /srv/ocelot.conf
|
|
|
|
RUN apt-get purge -y \
|
|
build-essential \
|
|
cmake \
|
|
pkg-config \
|
|
&& apt-get autoremove -y \
|
|
&& apt-get clean -y \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# default listen_port value in ocelot.conf
|
|
EXPOSE 34000
|
|
|
|
CMD ["/srv/ocelot"]
|