Initial commit
This commit is contained in:
31
pghs/Dockerfile
Normal file
31
pghs/Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user