Open pyromiko opened 1 month ago
I'm currently using this docker file that i pull from #96 It uses an up to date ubuntu version.
FROM ubuntu:22.04 AS build-env
# Install dependencies
RUN apt update && apt -y install \
build-essential \
libssl-dev \
libcurl4-openssl-dev\
libsqlite3-dev \
libz-dev \
autoconf \
automake \
libtool \
libmosquitto-dev \
pkg-config \
git \
cmake \
make \
&& apt clean
RUN mkdir -p /usr/local/src
WORKDIR /usr/local/src/
RUN git clone https://github.com/warmcat/libwebsockets.git libwebsockets
WORKDIR /usr/local/src/libwebsockets
RUN cmake -B build -S .
RUN cd build && make && make install
# install libs in /usr/local/lib ; configured in /etc/ld.so.conf.d/libc.conf
# ENV LD_LIBRARY_PATH /usr/local/lib:${LD_LIBRARY_PATH}
RUN ldconfig -v
ENV MAKE_JOBS=8
COPY . /obuspa/
RUN cd /obuspa/ && \
autoreconf -fi && \
./configure && \
make -j${MAKE_JOBS} && \
make install
FROM debian:stable AS build-release-stage
RUN apt update && apt -y install \
libssl-dev \
libsqlite3-dev \
libcurl4-openssl-dev\
libmosquitto-dev
WORKDIR /
COPY --from=build-env /usr/local/lib/libwebsockets.* /usr/local/lib
COPY --from=build-env /obuspa/obuspa /bin
COPY --from=build-env /obuspa/factory_reset_example.txt /etc
RUN ldconfig -v
ENV OBUSPA_ARGS="-p -v 4 -r /etc/factory_reset_example.txt --dbfile /tmp/sqldb"
# Run obuspa with args expanded
CMD obuspa ${OBUSPA_ARGS}
Seems that docker build is outdated.
i had to change Dockerfile to: