-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux.Dockerfile
34 lines (22 loc) · 956 Bytes
/
linux.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
# escape=`
ARG CONTAINER_REGISTRY="docker.io"
FROM $CONTAINER_REGISTRY/lacledeslan/gamesvr-warsow
ARG BUILDNODE="unspecified"
ARG SOURCE_COMMIT
LABEL com.lacledeslan.build-node $BUILDNODE `
org.opencontainers.image.source https://github.com/LacledesLAN/gamesvr-warsow-freeplay `
org.opencontainers.image.title "Laclede's LAN Warsow Freeplay Dedicated Server" `
org.opencontainers.image.url https://github.com/LacledesLAN/README.1ST `
org.opencontainers.image.vendor "Laclede's LAN" `
org.opencontainers.image.version $SOURCE_COMMIT
# UPDATE USERNAME & ensure permissions
RUN usermod -l WarsowFreeplay Warsow;
COPY --chown=WarsowFreeplay:root /dist /app
# `RUN true` lines are work around for https://github.com/moby/moby/issues/36573
RUN true
COPY --chown=WarsowFreeplay:root ./ll-tests /app/ll-tests
RUN chmod +x /app/ll-tests/*.sh;
USER WarsowFreeplay
WORKDIR /app/
CMD ["/bin/bash"]
ONBUILD USER root