browsertrix/backend/Dockerfile
Ilya Kreymer e3f268a2e8
CI setup for new swarm mode (#248)
- build backend and frontend with cacheing using GHA cache)
- streamline frontend image to reduce layers
- setup local swarm with test/setup.sh script, wait for containers to init
- copy sample config files as default (add storages.sample.yaml)
- add initial backend test for logging in with default superadmin credentials via 127.0.0.1:9871
- must use 127.0.0.1 instead of localhost for accessing frontend container within action
2022-06-06 09:34:02 -07:00

15 lines
247 B
Docker

FROM python:3.9
WORKDIR /app
ADD requirements.txt /app
RUN pip install -r requirements.txt
RUN python-on-whales download-cli
ADD btrixcloud/ /app/btrixcloud/
CMD uvicorn btrixcloud.main:app_root --host 0.0.0.0 --access-log --log-level info