forked from SerbiaStrong-220/Monolith
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (29 loc) · 1.07 KB
/
Copy pathDockerfile
File metadata and controls
44 lines (29 loc) · 1.07 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
# syntax=docker/dockerfile:1
FROM debian:trixie-slim AS build
WORKDIR /src
RUN apt-get update && apt-get install -y --no-install-recommends \
unzip \
ca-certificates \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY release/SS14.Server_linux-x64.zip /tmp/server.zip
RUN unzip /tmp/server.zip -d server/ \
&& rm /tmp/server.zip
RUN chmod +x /src/server/Robust.Server
FROM mcr.microsoft.com/dotnet/runtime:10.0 AS final
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
libgssapi-krb5-2 \
&& rm -rf /var/lib/apt/lists/*
ARG VERSION=dev
ARG BUILD_DATE=unknown
ARG VCS_REF=unknown
LABEL org.opencontainers.image.title="Exodus Monolith Server" \
org.opencontainers.image.description="SS14 Exodus Monolith Server" \
org.opencontainers.image.version="${VERSION}" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.revision="${VCS_REF}"
RUN groupadd -r ss14 && useradd -r -g ss14 -d /app ss14
COPY --chown=ss14:ss14 --from=build /src/server/ .
USER ss14
ENTRYPOINT [ "./Robust.Server" ]