Spaces:
Runtime error
Runtime error
File size: 475 Bytes
1e28122 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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"] |