Skip to content

Commit b0afa91

Browse files
committed
project reorg
1 parent 8ca1d93 commit b0afa91

6 files changed

Lines changed: 62 additions & 876 deletions

File tree

.env.example

Lines changed: 0 additions & 33 deletions
This file was deleted.

.gitattributes

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
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

Dockerfile

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
1-
# start with a lightweight Alpine Linux image
1+
# Base image
22
FROM alpine:3.23
33

4-
# where we working?
4+
# Set working directory
55
WORKDIR /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
2319
COPY entrypoint.sh /app/entrypoint.sh
2420
RUN chmod +x /app/entrypoint.sh
2521

26-
# expose default hytale server port
22+
# Expose default Hytale server port
2723
EXPOSE 5520
2824

29-
# run the entrypoint script
25+
# Set entrypoint
3026
ENTRYPOINT ["/app/entrypoint.sh"]

0 commit comments

Comments
 (0)