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.
29 lines
721 B
29 lines
721 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 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"]
|