mirror of
https://github.com/gtsteffaniak/filebrowser.git
synced 2026-11-26 08:29:41 -05:00
16 lines
521 B
Docker
16 lines
521 B
Docker
FROM ghcr.io/gtsteffaniak/playwright-base:latest
|
|
|
|
COPY [ "./_docker/src/oidc/frontend/", "./" ]
|
|
COPY [ "./frontend/tests/", "./tests" ]
|
|
|
|
WORKDIR /app/backend/
|
|
RUN mkdir -p ./internal/web/dist
|
|
COPY [ "./_docker/src/oidc/backend/", "./"]
|
|
COPY ["./backend/filebrowser", "./"]
|
|
COPY [ "./frontend/dist/", "./internal/web/dist/"]
|
|
|
|
# Run tests
|
|
WORKDIR /app/frontend
|
|
ENV FILEBROWSER_PLAYWRIGHT_TEST=true
|
|
RUN node mock-oidc-server.js & sleep 2 && cd ../backend/ && ./filebrowser & sleep 2 && cd ../frontend && npx playwright test
|