mirror of
https://github.com/OPSnet/Ocelot.git
synced 2026-01-16 18:04:19 -05:00
38 lines
908 B
Docker
38 lines
908 B
Docker
FROM debian:bookworm-slim
|
|
|
|
LABEL org.opencontainers.image.source=https://github.com/OPSnet/Ocelot
|
|
|
|
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 \
|
|
netcat-traditional \
|
|
pkg-config \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY . /srv
|
|
WORKDIR /srv
|
|
|
|
RUN cmake -Wno-dev -S /srv -B /srv/build \
|
|
&& make -C build \
|
|
&& apt-get purge -y \
|
|
build-essential \
|
|
cmake \
|
|
pkg-config \
|
|
&& apt-get autoremove -y \
|
|
&& apt-get clean -y \
|
|
&& mkdir -p /tmp/ocelot \
|
|
&& mv /srv/build/ocelot /srv/ocelot \
|
|
&& mv /srv/ocelot.conf.dist /srv/ocelot.conf
|
|
|
|
# default listen_port value in ocelot.conf
|
|
EXPOSE 34000
|
|
|
|
CMD ["/srv/ocelot"]
|