-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (19 loc) · 924 Bytes
/
Dockerfile
File metadata and controls
30 lines (19 loc) · 924 Bytes
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
FROM python:3.13
RUN addgroup --gid 1024 ots
RUN adduser --home /app --disabled-password --gecos "" --force-badname --gid 1024 ots
RUN apt update && apt install ffmpeg -y
USER ots
WORKDIR /app/opentakserver
RUN chown -R ots:ots /app
RUN python -m venv /app/venv
ENV PATH="/app/venv/bin:$PATH"
# TODO: Install from PyPI
RUN pip install git+https://github.com/brian7704/OpenTAKServer.git
RUN /app/venv/bin/flask --app /app/venv/lib/python3.13/site-packages/opentakserver/app.py ots create-ca
#RUN /app/venv/bin/flask --app /app/venv/lib/python3.13/site-packages/opentakserver/app.py db upgrade
EXPOSE 8081
ENTRYPOINT ["opentakserver"]
# Flask will stop gracefully on SIGINT (Ctrl-C).
# Docker compose tries to stop processes using SIGTERM by default, then sends SIGKILL after a delay if the process doesn't stop.
STOPSIGNAL SIGINT
HEALTHCHECK --interval=1m CMD curl --fail http://localhost:8081/api/health || exit 1