mirror of
https://github.com/gtsteffaniak/filebrowser.git
synced 2026-11-24 23:49:41 -05:00
23 lines
830 B
Docker
23 lines
830 B
Docker
FROM ghcr.io/gtsteffaniak/playwright-base:latest
|
|
WORKDIR /app
|
|
|
|
# Copy setup scripts first to leverage caching
|
|
COPY [ "./_docker/src/settings/", "./" ]
|
|
|
|
WORKDIR /app/frontend
|
|
COPY [ "./_docker/src/settings/frontend/", "./" ]
|
|
COPY [ "./frontend/tests/", "./tests" ]
|
|
COPY [ "./frontend/tests/playwright-files", "/tests/playwright-files" ]
|
|
|
|
WORKDIR /app/backend/
|
|
COPY [ "./backend/filebrowser*", "./"]
|
|
COPY [ "./backend/reduce-rounded-corners.css", "./no-rounded.css"]
|
|
RUN mkdir -p ./http/dist
|
|
COPY [ "./backend/http/embed/", "./http/dist/"]
|
|
|
|
# Run tests
|
|
ENV FILEBROWSER_PLAYWRIGHT_TEST=true
|
|
RUN ./filebrowser set -u testuser1,testuser1
|
|
RUN ./filebrowser set rule -f /tests/playwright-files -p / -r user -v admin -allow -c config.yaml
|
|
RUN ./filebrowser set rule -f /tests/playwright-files -p /excluded -r user -v admin -c config.yaml
|