forked from fopwoc/odamex-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (17 loc) · 828 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:jammy
LABEL MAINTAINER="Ilya Dobryakov <ilya.dobryakov@icloud.com>"
ENV VERSION=10.6.0
RUN apt-get update && apt-get -y upgrade && \
apt-get install -y curl libwxgtk3.0-gtk3-dev deutex zlib1g-dev libasound2-dev cmake build-essential && \
rm -rf /var/lib/apt/lists/* && \
curl -LJO "https://github.com/odamex/odamex/releases/download/${VERSION}/odamex-src-${VERSION}.tar.gz" && \
tar -zxvf odamex-*.tar.gz && \
cd odamex-* && \
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr . && \
make odasrv && make install && \
rm -rf ./* && apt remove cmake build-essential -y && apt autoremove -y
RUN groupadd --gid 1000 doom && useradd --uid 1000 --gid doom --shell /bin/bash --create-home -d /doom doom
USER doom
WORKDIR /doom
EXPOSE 10666/udp
ENTRYPOINT ["/usr/bin/odasrv"]