14 lines
451 B
Docker
14 lines
451 B
Docker
FROM gtstef/playwright-base
|
|
|
|
COPY [ "./_docker/src/oidc/frontend/", "./" ]
|
|
COPY [ "./frontend/tests/", "./tests" ]
|
|
|
|
WORKDIR /app/backend/
|
|
RUN mkdir -p ./http/dist
|
|
COPY [ "./_docker/src/oidc/backend/", "./"]
|
|
COPY ["./backend/filebrowser", "./"]
|
|
COPY [ "./backend/http/embed/", "./http/dist/"]
|
|
# Run tests
|
|
WORKDIR /app/frontend
|
|
RUN node mock-oidc-server.js & sleep 2 && cd ../backend/ && ./filebrowser & sleep 2 && cd ../frontend && npx playwright test
|