forked from upstream/filebrowser
Signed-off-by: Joel Godfrey <m.joelgodfrey@gmail.com> Co-authored-by: Kevin B. <kurami32_kbm@proton.me> Co-authored-by: zarev <60230221+zarevskaya@users.noreply.github.com> Co-authored-by: Joel Godfrey <82655889+BaccanoMob@users.noreply.github.com> Co-authored-by: Stephan Paternotte <Stephan-P@users.noreply.github.com>
17 lines
467 B
Docker
17 lines
467 B
Docker
FROM ghcr.io/gtsteffaniak/playwright-base:chromium
|
|
WORKDIR /app
|
|
|
|
# Copy setup scripts first to leverage caching
|
|
COPY [ "./_docker/src/previews/", "./" ]
|
|
|
|
WORKDIR /app/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 |