forked from freeciv/freeciv-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (32 loc) · 1.19 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
# Freeciv-web docker file
# Dockerfile update based on debian/tomcat package
FROM debian:stretch
MAINTAINER The Freeciv Project version: 2.5
## Add relevant content - to be pruned in the future
ADD .git /docker/.git
ADD freeciv /docker/freeciv
ADD freeciv-earth /docker/freeciv-earth
ADD freeciv-proxy /docker/freeciv-proxy
ADD freeciv-web /docker/freeciv-web
ADD pbem /docker/pbem
ADD publite2 /docker/publite2
ADD LICENSE.txt /docker/LICENSE.txt
ADD scripts /docker/scripts
ADD tests /docker/tests
ADD music /docker/music
ADD blender /docker/blender
ADD nginx /docker/nginx
## Install relevant packages
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get -y upgrade && apt-get install -y sudo lsb-release
EXPOSE 80 8080 4002 6000 6001 6002 7000 7001 7002
## Create user and ensure no passwd questions during scripts
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
RUN echo "docker ALL = (root) NOPASSWD: ALL" >> /etc/sudoers.d/docker
RUN chmod 0440 /etc/sudoers.d/docker
RUN chown -R docker:docker /docker
USER docker
ENV LC_ALL C.UTF-8
WORKDIR /docker/scripts/
RUN install/install.sh --mode=TEST
RUN sudo rm /etc/sudoers.d/docker
CMD ["/bin/bash"]