-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (35 loc) · 881 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# L4D2 Dockerfile
#
# https://github.com/johnjelinek/l4d2server-docker
#
# Pull the base image
FROM ubuntu:14.04
MAINTAINER John Jelinek IV <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
# Install dependencies
RUN \
apt-get update && \
apt-get install -y tmux mailutils postfix lib32gcc1 wget
# Cleanup
RUN \
apt-get clean && \
rm -fr /var/lib/apt/lists/* && \
rm -fr /tmp/*
# Create user to run as
RUN groupadd -r l4d2server && useradd -rm -g l4d2server l4d2server
# Install L4D2 Server
RUN wget http://gameservermanagers.com/dl/l4d2server && \
chmod +x l4d2server
# Volume
VOLUME ["/home/l4d2server"]
RUN chown -R l4d2server:l4d2server /home/l4d2server
# Define working directory
WORKDIR /home/l4d2server
USER l4d2server
# Default command
ENTRYPOINT ["./l4d2server"]
# Expose port
# - 27015: Port to serve on
EXPOSE 27015/tcp
EXPOSE 27015/udp