Add Dockerfile, make redis feature optional, add listening address cmdline parameter
This commit is contained in:
1 parent
2d44560ec9
commit
c10e0a17cf
7 files changed
+90
-17
No files matched your search
+29
@@ -0,0 +1,29 @@
|
||||
FROM registry.brunner.ninja/library/ubuntu:devel AS build
|
||||
|
||||
RUN apt update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt install libqt6core6 libqt6httpserver6 libqt6websockets6 -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 -y \
|
||||
&& rm /var/lib/apt/lists/* /var/log/* -Rf
|
||||
|
||||
COPY ./ /less_shitty_proxyjs
|
||||
|
||||
RUN mkdir -pv /build \
|
||||
&& cd /build \
|
||||
&& qmake6 /less_shitty_proxyjs \
|
||||
&& make -j4 \
|
||||
&& ls -lah
|
||||
|
||||
FROM registry.brunner.ninja/library/ubuntu:devel AS runtime
|
||||
|
||||
RUN apt update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt install libqt6core6 libqt6httpserver6 libqt6websockets6 -y \
|
||||
&& rm /var/lib/apt/lists/* /var/log/* -Rf
|
||||
|
||||
COPY --from=build /build/less_shitty_proxyjs /less_shitty_proxyjs
|
||||
|
||||
ENTRYPOINT [ "/less_shitty_proxyjs", "Any", "1234" ]
|
||||
|
||||
EXPOSE 1234
|
||||
Reference in new issue
Block a user