forked from planetarium/NineChronicles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (30 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
44 lines (30 loc) · 1.03 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
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
COPY nekoyume /src
COPY scripts /scripts
RUN dotnet build /src/Assets/_Scripts/NineChronicles.RPC.Shared/NineChronicles.RPC.Shared/NineChronicles.RPC.Shared.csproj
FROM gableroux/unity3d:2019.1.0f2 AS build
ARG apt_source
RUN if [ "$apt_source" != "" ]; then \
echo "Replace APT source to <$apt_source>."; \
sed -i \
"s|http://archive.ubuntu.com/ubuntu|$apt_source|" \
/etc/apt/sources.list; \
fi
RUN apt-get update || true && \
apt-get install -y libxml2-utils xsltproc git && \
rm -rf /var/lib/apt/lists/*
ARG ulf
ENV ULF=$ulf
COPY --from=build-env /src /src
COPY scripts /scripts
RUN chmod +x /scripts/*.sh
RUN /scripts/build.sh
FROM bitnami/minideb:stretch
RUN apt update && \
apt install -y ca-certificates wget libc6-dev
COPY --from=build /src/Build/LinuxHeadless /app
COPY --from=build /scripts/entrypoint.sh /entrypoint.sh
VOLUME /data
ARG prior_dlls="prior_dlls"
ENV PRIOR_DLLS=$prior_dlls
ENTRYPOINT ["/entrypoint.sh", "--storage-path=/data/planetarium"]