Initial commit

This commit is contained in:
cracklesparkle
2024-11-25 01:20:02 +00:00
commit 27a4f4153f
12 changed files with 420 additions and 0 deletions

29
xdac/Dockerfile Normal file
View File

@ -0,0 +1,29 @@
FROM debian:bookworm AS base
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
apache2 \
postgresql \
unzip \
wget \
locales \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN dpkg-reconfigure locales
FROM base AS installer
COPY . /home/dist
RUN dpkg -i /home/dist/xsquare.xdac_3.4.1.12.deb
RUN cp /home/dist/config.json /usr/local/xsquare.xdac/config.json
RUN cp /home/dist/xdac /usr/local/xsquare.xdac/xdac
RUN cp /home/dist/xdac.lic /usr/local/xsquare.xdac/xdac.lic
RUN sed -i 's/"domain": "localhost"/"domain": "postgres"/' /usr/local/xsquare.xdac/config.json
WORKDIR /usr/local/xsquare.xdac
CMD ["/usr/local/xsquare.xdac/xdac"]