-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserver.Dockerfile
More file actions
27 lines (18 loc) · 755 Bytes
/
Copy pathserver.Dockerfile
File metadata and controls
27 lines (18 loc) · 755 Bytes
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
FROM barichello/godot-ci:mono-4.6.3 AS build
WORKDIR /app
COPY . .
ARG DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=${DOTNET_SYSTEM_GLOBALIZATION_INVARIANT}
#RUN mkdir -v -p ~/.local/share/godot/export_templates/
#RUN mkdir -v -p ~/.config/
#RUN mv /root/.config/godot ~/.config/godot
#RUN mv /root/.local/share/godot/export_templates/4.6.3.stable.mono ~/.local/share/godot/export_templates/4.6.3.stable.mono
RUN mkdir -v -p ./build/server
RUN godot --headless --verbose --export-release "Linux Server" ./build/server/out --main-scene res://scenes/intro.tscn
FROM ubuntu:24.04
WORKDIR /app
COPY --from=build /app/build/server ./
RUN chmod +x ./out
CMD ["./out", "--server"]
EXPOSE 8080/udp
EXPOSE 8080/tcp