Download Dockerfile from tonyy1/bit: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/tonyy1/bit/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/tonyy1/bit/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/tonyy1/bit/resolve/main/Dockerfile
296 Bytes
| FROM maven:3.9.6-eclipse-temurin-21-jammy AS build | |
| WORKDIR /app | |
| COPY . . | |
| RUN chmod +x mvnw && ./mvnw clean package -DskipTests | |
| FROM eclipse-temurin:21-jre-jammy | |
| WORKDIR /app | |
| COPY --from=build /app/target/*.jar app.jar | |
| EXPOSE 7860 | |
| ENTRYPOINT ["java", "-jar", "app.jar", "--server.port=7860"] |