-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 796 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 796 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
FROM debian:13.4-slim AS opensb
# install unzip
RUN apt-get update && apt-get install -y --no-install-recommends unzip && rm -rf /var/lib/apt/lists/*
ARG OPENSB_VERSION=0.1.14
WORKDIR /scratch
ADD https://github.com/OpenStarbound/OpenStarbound/releases/download/v${OPENSB_VERSION}/OpenStarbound-Linux-Clang-Server.zip /scratch/opensb.zip
RUN unzip opensb.zip
RUN tar -xvf server.tar
FROM debian:13.4-slim AS runtime
WORKDIR /starbound
# Install dependencies
# get the opensb image
COPY --from=opensb /scratch/server_distribution/ /starbound/
COPY entrypoint.sh /starbound/entrypoint.sh
RUN chmod +x /starbound/entrypoint.sh && \
groupadd -r starbound && useradd -r -g starbound starbound && \
chown -R starbound:starbound /starbound
USER starbound
CMD ["/starbound/entrypoint.sh"]