-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 726 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 726 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
FROM ubuntu:latest
LABEL maintainer="https://github.com/Auhrus"
LABEL org.opencontainers.image.source="https://github.com/auhrus/pathoftitans-docker-server"
ENV username=""
ENV password=""
ENV guid=""
ENV authtoken=""
ENV branch="production"
ENV port="7777"
ENV database="Local"
ENV additionalcommands=""
EXPOSE 7778 7780/tcp
EXPOSE 7777/udp
HEALTHCHECK --interval=30s --timeout=3s --retries=2 CMD nc -zuvw2 127.0.0.1 7777 || exit 1
RUN apt update && apt install libcurl4 netcat-openbsd openssl wget -y && apt clean
COPY ./serverstart.sh /opt/data/serverstart.sh
COPY ./pot_restart_function.sh /opt/data/pot_restart_function.sh
RUN useradd potserver && chmod +x /opt/data/ -R
WORKDIR /opt/data
CMD ["./serverstart.sh"]