Skip to content

Commit

Permalink
install plugins in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Francia Csaba committed Mar 22, 2024
1 parent 862f825 commit 6c164aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ ENV RIDE2GO_TOKEN=''

EXPOSE 80

ARG PLUGINS

COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt ${PLUGINS}

# set MODULE_NAME explicitly
ENV MODULE_NAME=amarillo.main
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ In the top directory, run `pytest amarillo/tests`.

Based on [tiangolo/uvicorn-gunicorn:python3.9-slim](https://github.com/tiangolo/uvicorn-gunicorn-docker)

- build `docker build -t amarillo .`
- build `docker build -t amarillo --build-arg="PLUGINS=amarillo-metrics" .`
- run `docker run --rm --name amarillo -p 8000:80 -e MAX_WORKERS="1" -e ADMIN_TOKEN=$ADMIN_TOKEN -e RIDE2GO_TOKEN=$RIDE2GO_TOKEN -e TZ=Europe/Berlin -v $(pwd)/data:/app/data amarillo`

0 comments on commit 6c164aa

Please sign in to comment.