Spaces:
Running
Running
Download Dockerfile from apitest-dev/erp-test-suite: direct link, hf CLI and curl.
- Browser
- Download file 628 Bytes
-
https://huggingface.co/spaces/apitest-dev/erp-test-suite/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/apitest-dev/erp-test-suite/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/apitest-dev/erp-test-suite/resolve/main/Dockerfile
628 Bytes
| FROM eclipse-temurin:17-jdk-alpine | |
| LABEL maintainer="ERP System Team" | |
| LABEL version="1.0.0" | |
| LABEL description="ERP System with MongoDB, MySQL and PostgreSQL support" | |
| RUN apk update && apk add --no-cache curl maven | |
| WORKDIR /app | |
| COPY pom.xml ./ | |
| COPY src/ ./src/ | |
| COPY start.sh ./start.sh | |
| RUN mvn clean package -DskipTests | |
| RUN addgroup -S spring && adduser -S spring -G spring \ | |
| && chmod +x /app/start.sh \ | |
| && chown -R spring:spring /app | |
| USER spring | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=3s --start-period=60s --retries=3 \ | |
| CMD curl -f http://localhost:7860/ping || exit 1 | |
| CMD ["/bin/sh", "/app/start.sh"] |