mirror of
https://github.com/gtsteffaniak/filebrowser.git
synced 2026-11-24 23:49:41 -05:00
19 lines
526 B
Docker
19 lines
526 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 ./internal/web/dist
|
|
COPY [ "./frontend/dist/", "./internal/web/dist/"]
|
|
|
|
# Run tests
|
|
ENV FILEBROWSER_PLAYWRIGHT_TEST=true
|
|
RUN ./filebrowser & sleep 2 && cd ../frontend && npx playwright test
|