diff --git a/Dockerfile b/Dockerfile index 9c3e929b..75f7cd40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ FROM eclipse-temurin:8 -RUN addgroup app && adduser --system --group app app && mkdir /app && chown app:app /app +RUN adduser --system --group --home /app app USER app -WORKDIR /app -COPY --chown=app:app server/build/libs/server.jar . +COPY server/build/libs/server.jar . EXPOSE 8887 CMD ["java", "-jar", "/app/server.jar"]