You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
746 B
31 lines
746 B
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"]
|