3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-19 22:40:18 +01:00
Geyser/standalone.Dockerfile
James Edington 8d2db2e4e2 Syntax tweak
2021-02-21 18:50:29 -06:00

23 Zeilen
513 B
Docker

FROM maven:3.6-jdk-11 as build
COPY . .
RUN git submodule update --init --recursive &&\
mvn clean install
FROM adoptopenjdk/openjdk11:alpine-jre
COPY --from=build ./bootstrap/standalone/target /opt/Geyser
ARG UID=1000
ARG GID=1000
RUN adduser --system --shell /bin/false -u $UID -g $GID --home /opt/Geyser geyser
RUN mkdir -v /var/lib/geyser && chown -v -R ${UID}:0 /var/lib/geyser
VOLUME /var/lib/geyser
USER geyser
WORKDIR /var/lib/geyser
EXPOSE 19132/udp
CMD ["java", "-jar", "/opt/Geyser/Geyser.jar"]