Files
less_shitty_proxyjs/Dockerfile
0xFEEDC0DE64 c2a9aea916
Some checks failed
Build and push docker image / build (push) Failing after 1m40s
100% kubernetes scalable now
2025-08-17 22:39:03 +02:00

29 lines
920 B
Docker

FROM registry.brunner.ninja/library/ubuntu:devel AS build
RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt install libqt6core6 libqt6httpserver6 libqt6websockets6 libhiredis1.1.0 -y \
&& rm /var/lib/apt/lists/* /var/log/* -Rf
RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt install qmake6 g++ make qt6-base-dev qt6-websockets-dev qt6-httpserver-dev libhiredis-dev -y \
&& rm /var/lib/apt/lists/* /var/log/* -Rf
COPY ./ /less_shitty_proxyjs
RUN mkdir -pv /build \
&& cd /build \
&& qmake6 "CONFIG+=redis" /less_shitty_proxyjs \
&& make -j4
FROM registry.brunner.ninja/library/ubuntu:devel AS runtime
RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt install libqt6core6 libqt6httpserver6 libqt6websockets6 libhiredis1.1.0 -y \
&& rm /var/lib/apt/lists/* /var/log/* -Rf
COPY --from=build /build/less_shitty_proxyjs /less_shitty_proxyjs
ENTRYPOINT [ "/less_shitty_proxyjs" ]
EXPOSE 8080