forked from upstream/filebrowser
Co-authored-by: Pyro <pyrodd@gmail.com> Co-authored-by: Kevin B. <kurami32_kbm@proton.me> Co-authored-by: lps-rocks <10893911+lps-rocks@users.noreply.github.com> Co-authored-by: contributor <foss.contributor@gmail.com> Co-authored-by: Sarabanga <96509626+Sarabanga@users.noreply.github.com>
16 lines
510 B
Docker
16 lines
510 B
Docker
FROM ghcr.io/gtsteffaniak/playwright-base:latest
|
|
|
|
COPY [ "./_docker/src/oidc/frontend/", "./" ]
|
|
COPY [ "./frontend/tests/", "./tests" ]
|
|
|
|
WORKDIR /app/backend/
|
|
RUN mkdir -p ./http/dist
|
|
COPY [ "./_docker/src/oidc/backend/", "./"]
|
|
COPY ["./backend/filebrowser", "./"]
|
|
COPY [ "./backend/http/embed/", "./http/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
|