Skip to content

Commit

Permalink
define MODULE_NAME ENV in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch committed Feb 1, 2024
1 parent b8f7e70 commit c55ffd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ EXPOSE 80
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt

# set MODULE_NAME explicitly
ENV MODULE_NAME=amarillo.main

COPY ./amarillo /app/amarillo
COPY enhancer.py /app
COPY prestart.sh /app
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ 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 .`
- run `docker run --rm --name amarillo -p 8000:80 -e MODULE_NAME=amarillo.main -e MAX_WORKERS="1" -e ADMIN_TOKEN=$ADMIN_TOKEN -e RIDE2GO_TOKEN=$RIDE2GO_TOKEN -e TZ=Europe/Berlin -v $(pwd)/data:/app/data amarillo`
- 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 c55ffd5

Please sign in to comment.