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>
19 lines
516 B
Docker
19 lines
516 B
Docker
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 ./http/dist
|
|
COPY [ "./backend/http/embed/", "./http/dist/"]
|
|
|
|
# Run tests
|
|
ENV FILEBROWSER_PLAYWRIGHT_TEST=true
|
|
RUN ./filebrowser & sleep 2 && cd ../frontend && npx playwright test
|