mirror of
https://github.com/gtsteffaniak/filebrowser.git
synced 2026-11-07 10:02:42 -05:00
16 lines
624 B
Docker
16 lines
624 B
Docker
FROM ghcr.io/gtsteffaniak/playwright-base:latest
|
|
WORKDIR /app
|
|
COPY [ "./_docker/src/proxy/", "./" ]
|
|
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/"]
|
|
RUN apt update && apt install nginx -y
|
|
RUN mv default.conf /etc/nginx/conf.d/default.conf
|
|
RUN mv .htpasswd /etc/nginx/conf.d/.htpasswd
|
|
RUN sed -i 's/filebrowser/localhost/g' /etc/nginx/conf.d/default.conf
|
|
ENV FILEBROWSER_PLAYWRIGHT_TEST=true
|
|
RUN nginx & ./filebrowser & sleep 2 && cd ../frontend && npx playwright test
|