Spaces:
Sleeping
Sleeping
| FROM openjdk:17-slim | |
| RUN useradd -m zfileuser | |
| RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| RUN curl -L -o zfile-4.1.5.jar https://github.com/zfile-dev/zfile/releases/download/4.1.5/zfile-4.1.5.jar | |
| RUN mkdir -p /app/config | |
| COPY application.properties /app/config/ | |
| RUN chmod 644 /app/config/application.properties | |
| RUN chown -R zfileuser:zfileuser /app | |
| USER zfileuser | |
| EXPOSE 8080 | |
| CMD ["java", "-jar", "/app/zfile-4.1.5.jar"] |