mirror of
https://github.com/gtsteffaniak/filebrowser.git
synced 2026-11-26 16:39:41 -05:00
19 lines
566 B
Docker
19 lines
566 B
Docker
FROM gtstef/ffmpeg:9.0.2 AS ffmpeg
|
|
|
|
FROM ghcr.io/gtsteffaniak/playwright-base:chromium
|
|
WORKDIR /app
|
|
COPY --from=ffmpeg [ "/ffmpeg", "/ffprobe", "/usr/local/bin/" ]
|
|
|
|
# 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 ./internal/web/dist
|
|
COPY [ "./frontend/dist/", "./internal/web/dist/"]
|
|
|
|
ENV FILEBROWSER_PLAYWRIGHT_TEST=true
|
|
RUN ./filebrowser & sleep 2 && cd ../frontend && npx playwright test |