Download benchmark/dependency_injection/encoder/spring/Dockerfile from ibm-research/ScarfBench: direct link, hf CLI and curl.
- Browser
- Download file 816 Bytes
-
https://huggingface.co/datasets/ibm-research/ScarfBench/resolve/main/benchmark/dependency_injection/encoder/spring/Dockerfile
- Command line
-
hf download hf://datasets/ibm-research/ScarfBench/benchmark/dependency_injection/encoder/spring/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/ibm-research/ScarfBench/resolve/main/benchmark/dependency_injection/encoder/spring/Dockerfile
816 Bytes
| FROM maven:3.9.12-ibm-semeru-21-noble | |
| USER root | |
| # install uv | |
| RUN apt-get update && apt-get install -y --no-install-recommends curl python3-venv python3-full && curl -LsSf https://astral.sh/uv/install.sh | sh | |
| ENV PATH="/root/.local/bin:$PATH" | |
| # Shared browsers path so Chromium is cached once | |
| ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright | |
| RUN mkdir -p /ms-playwright && chmod 755 /ms-playwright | |
| # create venv and install | |
| RUN uv venv /opt/venv && uv pip install --python /opt/venv/bin/python playwright==1.47.0 pytest | |
| ENV PATH="/opt/venv/bin:$PATH" | |
| RUN playwright install --with-deps chromium | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy all the assets | |
| COPY . . | |
| COPY test.sh . | |
| RUN chmod +x test.sh | |
| # Build application at image build time | |
| RUN mvn clean install -DskipTests | |
| CMD ["mvn", "spring-boot:run"] | |