forked from FreeTAKTeam/FreeTakServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (26 loc) · 819 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.8
# don't use root, let's not have FTS be used as a priv escalation in the wild
RUN groupadd -r freetak && useradd -m -r -g freetak freetak
RUN mkdir /opt/FTSData ; chown -R freetak:freetak /opt/FTSData
USER freetak
# This needs the trailing slash
ENV FTS_DATA_PATH="/opt/FTSData/"
WORKDIR /FreeTAKServer
COPY . .
COPY --chown=freetak:freetak ./FreeTAKServer /FreeTAKServer
RUN pip3 install flask lxml flask_login
RUN pip3 install -e /FreeTAKServer
# DataPackagePort
EXPOSE 8080
# CoTPort
EXPOSE 8087
# SSLCoTPort
EXPOSE 8089
# SSLDataPackagePort
EXPOSE 8443
# FederationPort
EXPOSE 9000
# APIPort
EXPOSE 19023
#ENTRYPOINT [ "python", "TAKfreeServer/run.py", "-p", "8087" ]
ENTRYPOINT [ "python3", "-m", "FreeTAKServer.controllers.services.FTS", "-DataPackageIP", "0.0.0.0", "-AutoStart", "True"]