forked from LacledesLAN/gamesvr-cssource-freeplay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.linux
More file actions
44 lines (32 loc) · 1.29 KB
/
Copy pathDockerfile.linux
File metadata and controls
44 lines (32 loc) · 1.29 KB
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
# escape=`
FROM lacledeslan/gamesvr-cssource
HEALTHCHECK NONE
ARG BUILDNODE=unspecified
ARG SOURCE_COMMIT=unspecified
LABEL maintainer="Laclede's LAN <contact @lacledeslan.com>" `
com.lacledeslan.build-node=$BUILDNODE `
org.label-schema.schema-version="1.0" `
org.label-schema.url="https://github.com/LacledesLAN/README.1ST" `
org.label-schema.vcs-ref=$SOURCE_COMMIT `
org.label-schema.vendor="Laclede's LAN" `
org.label-schema.description="LL Counter-Strike Sourced Dedicated Server" `
org.label-schema.vcs-url="https://github.com/LacledesLAN/gamesvr-cssource-freeplay"
COPY ./sourcemod.linux /app/cstrike/
COPY ./sourcemod-configs /app/cstrike/
COPY ./dist /app/
COPY ./ll-tests/*.sh /app/ll-tests
RUN chmod +rx /app/ll-tests/*.sh &&`
chmod +rwx /app/ll-tests &&`
chown CSSource:root -R /app/ll-tests;
# UPDATE USERNAME & ensure permissions
RUN usermod -l CSSourceFreeplay CSSource &&`
find /app -type d -exec chmod 774 {} + &&`
chmod +x /app/ll-tests/*.sh &&`
mkdir -p /app/cstrike/logs &&`
echo "Permissions hacks until 17.09+ makes it into Docker Cloud" &&`
chmod -R 774 /app/cstrike/addons &&`
chmod -R 774 /app/cstrike/cfg &&`
chmod -R 774 /app/cstrike/logs;
USER CSSourceFreeplay
WORKDIR /app/
ONBUILD USER root