File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- # Ensure shell scripts always have LF line endings
2- * .sh text eol =lf
3- entrypoint.sh text eol =lf
1+ # LF line endings
2+ * text =auto eol =lf
Original file line number Diff line number Diff line change 1- # start with a lightweight Alpine Linux image
1+ # Base image
22FROM alpine:3.23
33
4- # where we working?
4+ # Set working directory
55WORKDIR /app
66
7- # get apk package manager up to date
8- RUN apk update
9-
10- # install java 25 runtime environment
11- RUN apk add --no-cache openjdk25-jre
12-
13- # downlaod hytale downloader cli
14- RUN wget https://downloader.hytale.com/hytale-downloader.zip
15-
16- # extract hytale-downloader-linux-amd64 cli from zip
17- RUN unzip hytale-downloader.zip hytale-downloader-linux-amd64
18-
19- # remove zip file
20- RUN rm hytale-downloader.zip
21-
22- # copy entrypoint script
7+ # Install dependencies and download Hytale server in a single layer
8+ RUN apk add --no-cache \
9+ openjdk25-jre \
10+ gcompat \
11+ libc6-compat \
12+ libgcc \
13+ libstdc++ \
14+ && wget -q https://downloader.hytale.com/hytale-downloader.zip \
15+ && unzip hytale-downloader.zip hytale-downloader-linux-amd64 \
16+ && rm hytale-downloader.zip
17+
18+ # Copy and prepare entrypoint script
2319COPY entrypoint.sh /app/entrypoint.sh
2420RUN chmod +x /app/entrypoint.sh
2521
26- # expose default hytale server port
22+ # Expose default Hytale server port
2723EXPOSE 5520
2824
29- # run the entrypoint script
25+ # Set entrypoint
3026ENTRYPOINT ["/app/entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments