-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.dockerfile
24 lines (21 loc) · 946 Bytes
/
server.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
FROM frolvlad/alpine-glibc:latest as godot-server
RUN wget -O /tmp/godot.zip https://downloads.tuxfamily.org/godotengine/3.4/Godot_v3.4-stable_linux_server.64.zip
RUN unzip /tmp/godot.zip -d /usr/local/bin/ && mv /usr/local/bin/Godot* /usr/local/bin/godot
RUN mkdir ~/.cache && mkdir -p ~/.config/godot
# FROM godotimages/godot:3.4 as build
# COPY . /build
# RUN godot --path /build --export-pack Server server.pck
# FROM godot-server as app
# LABEL org.opencontainers.image.source=https://github.com/astra137/7dfps-2021
# EXPOSE 10567/udp
# RUN apk add --no-cache tini
# COPY --from=build /build/server.pck /app/
# CMD [ "godot", "--main-pack", "/app/server.pck" ]
# ENTRYPOINT [ "tini", "--" ]
FROM godot-server as app
LABEL org.opencontainers.image.source=https://github.com/astra137/7dfps-2021
EXPOSE 10567/udp
RUN apk add --no-cache tini
COPY server.pck /app/
CMD [ "godot", "--main-pack", "/app/server.pck" ]
ENTRYPOINT [ "tini", "--" ]