mirror of
https://github.com/gtsteffaniak/filebrowser.git
synced 2026-11-24 23:49:41 -05:00
Co-authored-by: Kurami <178341547+Kurami32@users.noreply.github.com> Co-authored-by: Socramk <155040241+socramcaro2@users.noreply.github.com>
18 lines
486 B
Docker
18 lines
486 B
Docker
FROM gtstef/playwright-base
|
|
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
|
|
RUN FILEBROWSER_NO_EMBEDED=true ./filebrowser & sleep 2 && cd ../frontend && npx playwright test
|