add
This commit is contained in:
parent
aa21c24051
commit
7fb9a38398
2 changed files with 67 additions and 0 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM openjdk:21-buster
|
||||
|
||||
LABEL version="1.23.0"
|
||||
|
||||
RUN apt-get update && apt-get install -y curl unzip && \
|
||||
adduser --uid 99 --gid 100 --home /data --disabled-password minecraft
|
||||
|
||||
COPY launch.sh /launch.sh
|
||||
RUN chmod +x /launch.sh
|
||||
|
||||
USER minecraft
|
||||
|
||||
VOLUME /data
|
||||
WORKDIR /data
|
||||
|
||||
EXPOSE 25565/tcp
|
||||
|
||||
CMD ["/launch.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue