FROM ghcr.io/gtsteffaniak/playwright-base:latest WORKDIR /app # Copy setup scripts first to leverage caching COPY [ "./_docker/src/sharing/", "./" ] WORKDIR /app/frontend COPY [ "./_docker/src/sharing/frontend/", "./" ] COPY [ "./frontend/tests/", "./tests" ] WORKDIR /app/backend/ COPY [ "./backend/filebrowser", "./"] RUN mkdir -p ./internal/web/dist COPY [ "./frontend/dist/", "./internal/web/dist/"] # Run tests ENV FILEBROWSER_PLAYWRIGHT_TEST=true RUN ./filebrowser & sleep 2 && cd ../frontend && npx playwright test