-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux.Dockerfile
47 lines (34 loc) · 1.49 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
# escape=`
FROM lacledeslan/steamcmd:linux as factorio-builder
RUN wget -O /tmp/factorio.tar.xz https://factorio.com/get-download/stable/headless/linux64 &&`
tar -xJf /tmp/factorio.tar.xz -C /output;
#=======================================================================
FROM debian:bullseye-slim
ARG BUILDNODE=unspecified
ARG SOURCE_COMMIT=unspecified
HEALTHCHECK NONE
RUN apt-get update && apt-get install -y `
ca-certificates locales locales-all tmux &&`
apt-get clean &&`
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*;
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8
LABEL maintainer="Laclede's LAN <[email protected]>" `
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="Factorio Dedicated Server" `
org.label-schema.vcs-url="https://github.com/LacledesLAN/gamesvr-factorio"
# Set up Enviornment
RUN useradd --home /app --gid root --system Factorio &&`
mkdir -p /app/saves &&`
chown Factorio:root -R /app;
# `RUN true` lines are work around for https://github.com/moby/moby/issues/36573
COPY --chown=Factorio:root --from=factorio-builder /output/factorio /app
RUN true
COPY --chown=Factorio:root /dist/linux /app
RUN chmod +x /app/bin/x64 &&`
chmod +x /app/ll-tests/*.sh;
WORKDIR /app
USER Factorio