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

31
pghs/Dockerfile Normal file
View File

@ -0,0 +1,31 @@
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 mkdir /usr/local/xsquare.pghs
RUN cp /home/dist/config.json /usr/local/xsquare.pghs/config.json
RUN cp /home/dist/pghs /usr/local/xsquare.pghs/pghs
RUN cp /home/dist/pghs.lic /usr/local/xsquare.pghs/pghs.lic
RUN sed -i 's/"host": "127.0.0.1"/"host": "postgres"/g' /usr/local/xsquare.pghs/config.json
RUN chmod +x /usr/local/xsquare.pghs/pghs
WORKDIR /usr/local/xsquare.pghs
CMD ["/usr/local/xsquare.pghs/pghs"]