-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 938 Bytes
/
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
FROM ubuntu
MAINTAINER johnodon
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse" >> /etc/apt/source.list
RUN echo "deb-src http://us.archive.ubuntu.com/ubuntu/ bionic multiverse">> /etc/apt/source.list
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse" >> /etc/apt/source.list
RUN echo "deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse" >> /etc/apt/source.list
RUN apt-get update && apt-get -y dist-upgrade
RUN apt-get -y install wget screen unzip curl expect unrar
ENV DATA_DIR="/serverfiles"
ENV SERVER_DIR="/serverfiles/bf2142"
ENV SCRIPTS_DIR="/opt/scripts"
ENV UID=99
ENV GID=100
RUN mkdir /serverfiles
RUN useradd -d $DATA_DIR -s /bin/bash --uid $UID --gid $GID bf2142
ADD /scripts/ /opt/scripts/
RUN chmod -R 770 /opt/scripts/
RUN chown -R bf2142 /opt/scripts
RUN chown -R bf2142 $DATA_DIR
USER bf2142
#Server Start
ENTRYPOINT ["/opt/scripts/setup.sh"]