Download Dockerfile from dvc890/stusys: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/spaces/dvc890/stusys/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dvc890/stusys/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dvc890/stusys/resolve/main/Dockerfile
467 Bytes
| # Final running image | |
| FROM eclipse-temurin:17-jre-alpine | |
| WORKDIR /app | |
| RUN mkdir -p /app | |
| COPY ./*.jar /app/app.jar | |
| # Environment variables | |
| RUN --mount=type=secret,id=MONGO_USERNAME,mode=0444,required=true | |
| RUN --mount=type=secret,id=MONGO_PASSWORD,mode=0444,required=true | |
| RUN --mount=type=secret,id=MONGO_DATABASE,mode=0444,required=true | |
| RUN --mount=type=secret,id=MONGO_AUTH_DB,mode=0444,required=true | |
| # Expose ports | |
| EXPOSE 8080 | |
| CMD ["java", "-jar", "app.jar"] |