mirror of
https://github.com/gtsteffaniak/filebrowser.git
synced 2026-11-24 23:49:41 -05:00
Co-authored-by: Markos <xmarkos@gmail.com> Co-authored-by: Zhiyuan Zheng <zhzy0077@hotmail.com> Co-authored-by: Kurami <kurami32_kbm@proton.me> Co-authored-by: MrPanda376 <112415827+MrPanda376@users.noreply.github.com> Co-authored-by: MrPanda376 <luca.silvestrin.2008@gmail.com>
15 lines
576 B
Docker
15 lines
576 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 ./http/dist
|
|
COPY [ "./backend/http/embed/", "./http/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
|
|
RUN nginx & ./filebrowser & sleep 2 && cd ../frontend && npx playwright test
|