This repository has been archived by the owner on Dec 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
57 lines (44 loc) · 1.77 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM tomdesinto/urbanterror-data:4.3.4
# See https://hub.docker.com/r/tomdesinto/urbanterror-data/tags/
# a list of version numbers.
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.name="Urban Terror Server" \
org.label-schema.description="Docker image to run a Urban Terror Server" \
org.label-schema.usage="/README.md" \
org.label-schema.url="https://www.urbanterror.info/" \
org.label-schema.vcs-url="https://github.com/thomasleveil/docker-UrbanTerror" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.0.0-rc1"
WORKDIR /home/urt/UrbanTerror43
# Set correct environment variables.
ENV HOME /root
# Activate the SSH service
RUN rm -f /etc/service/sshd/down
# Regenerate SSH host keys. baseimage-docker does not contain any, so you
# have to do that yourself. You may also comment out this instruction; the
# init system will auto-generate one during boot.
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
## Install an SSH of your choice.
# COPY your_key /tmp/your_key
# RUN cat /tmp/your_key >> /root/.ssh/authorized_keys && rm -f /tmp/your_key
## -OR-
## Uncomment this to enable the insecure key.
# RUN /usr/sbin/enable_insecure_key
## Install startup scripts
COPY 01-motd.sh /etc/my_init.d/01-motd.sh
COPY 02-check_requirements.sh /etc/my_init.d/02-check_requirements.sh
COPY 03-install_maps.sh /etc/my_init.d/03-install_maps.sh
RUN chmod +x /etc/my_init.d/*.sh
## Install UrT service
RUN mkdir /etc/service/urt
COPY urt.sh /etc/service/urt/run
RUN chmod u+x /etc/service/urt/run
## Verify files
COPY checksums /home/urt/UrbanTerror43/checksums
RUN md5sum -c /home/urt/UrbanTerror43/checksums
ENV URT_PORT 27960
COPY README.md /README.md
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]