-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (26 loc) · 1.35 KB
/
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
# syntax=docker/dockerfile:1
# ************************************************************
# First stage: builder
# ************************************************************
FROM python:3.12-slim as build
WORKDIR /build
RUN pip3 install lastversion
RUN lastversion --assets extract brian7704/OpenTAKServer-UI
# ************************************************************
# Second stage: runtime
# ************************************************************
FROM nginx:mainline-bookworm
ARG BUILD_VERSION latest
LABEL maintainer="https://github.com/milsimdk"
LABEL org.opencontainers.image.title="Docker image for OpenTAKServer-UI"
LABEL org.opencontainers.image.description="OpenTAKServer is yet another open source TAK Server for ATAK, iTAK, and WinTAK"
LABEL org.opencontainers.image.version="${BUILD_VERSION}"
LABEL org.opencontainers.image.authors="Brian - https://github.com/brian7704"
LABEL org.opencontainers.image.vendor="https://github.com/milsimdk"
LABEL org.opencontainers.image.source="https://github.com/milsimdk/ots-ui-docker-image"
LABEL org.opencontainers.image.licenses="GNU General Public License v3.0"
# Copy OTS WebUI from build stage
COPY --from=build /build /usr/share/nginx/html/
COPY default.conf.template /etc/nginx/templates/
HEALTHCHECK --interval=30s CMD curl -k -I -A 'Docker-healthcheck' --fail http://localhost || exit 1
EXPOSE 80/tcp