44 lines
1.1 KiB
Docker
44 lines
1.1 KiB
Docker
# Use working FTS versions from Dockerfile
|
|
FROM ubuntu:20.04
|
|
|
|
LABEL maintainer=FreeTAKTeam
|
|
|
|
ARG FTS_VERSION=1.9
|
|
ARG FTS_UI_VERSION=1.8.1
|
|
|
|
# UTC for buildtimes
|
|
RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime
|
|
|
|
# APT
|
|
RUN apt-get update && \
|
|
apt-get install -y libssl-dev libffi-dev curl python3 python3-pip \
|
|
libxml2-dev libxslt-dev python3-lxml python3-dev \
|
|
python3-setuptools build-essential iproute2 &&\
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# PIP3
|
|
RUN pip3 install supervisor &&\
|
|
pip3 install requests &&\
|
|
pip3 install flask-login &&\
|
|
pip3 install FreeTAKServer==${FTS_VERSION} && \
|
|
pip3 install FreeTAKServer-UI==${FTS_UI_VERSION} && \
|
|
pip3 install defusedxml &&\
|
|
pip3 install pyopenssl &&\
|
|
pip3 install pytak
|
|
|
|
# Create FTS user
|
|
RUN addgroup --gid 1000 fts && \
|
|
adduser --disabled-password --uid 1000 --ingroup fts --home /home/fts fts
|
|
|
|
# Copy configuration files (will be provided at runtime)
|
|
COPY docker-run.sh /home/fts/docker-run.sh
|
|
RUN chmod +x /home/fts/docker-run.sh
|
|
|
|
# FTS ports
|
|
EXPOSE 8080 8087 8089 8443 9000 19023 5000
|
|
|
|
WORKDIR /home/fts
|
|
USER fts
|
|
|
|
CMD ["/home/fts/docker-run.sh"]
|