clense for rebuild

This commit is contained in:
Merith-TK 2025-07-05 16:14:58 +01:00
parent 40fc5d810a
commit c772f0ca99
13 changed files with 19 additions and 1557 deletions

View file

@ -1,46 +0,0 @@
FROM eclipse-temurin:17-jammy
# Install all required packages
RUN apt-get update && apt-get install -y \
postgresql-common \
emacs-nox \
net-tools \
netcat \
vim \
unzip \
curl \
sudo \
gosu
RUN yes | /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
RUN apt-get update && apt-get install -y \
postgresql-15 \
postgresql-15-postgis-3 \
postgresql-client-15 \
postgresql-contrib-15
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Create tak user and directories
RUN useradd -m -s /bin/bash tak && \
mkdir -p /opt/tak /opt/tak/logs /takserver-zip && \
chown -R tak:tak /opt/tak
# Configure PostgreSQL data directory (initialization will be done at runtime)
RUN mkdir -p /var/lib/postgresql/15/main && \
chown -R postgres:postgres /var/lib/postgresql
# Copy all scripts into the container
COPY entrypoint.sh /entrypoint.sh
COPY scripts/ /scripts/
# Make all scripts executable
RUN chmod +x /entrypoint.sh && \
chmod +x /scripts/*.sh
# Expose common TAK server ports
EXPOSE 5432 8080 8443 8444 8446
# Set the entrypoint
ENTRYPOINT ["/entrypoint.sh"]