-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 917 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 917 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
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
ENV DATA_DIR="/serverfiles"
ENV SERVER_DIR="/serverfiles/bf2"
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 bf2
ADD /scripts/ /opt/scripts/
RUN chmod -R 770 /opt/scripts/
RUN chown -R bf2 /opt/scripts
RUN chown -R bf2 $DATA_DIR
USER bf2
#Server Start
ENTRYPOINT ["/opt/scripts/setup.sh"]