Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ COPY runtimes/ /tmp/runtimes
RUN python -m pip install /tmp/runtimes --no-cache-dir --upgrade
RUN rm -rf /tmp/runtimes

RUN groupadd -g 1000 user && \
useradd -u 1000 -g user -s /bin/bash -m user

USER user

ENV HOST 0.0.0.0
ENV PORT 80

CMD uvicorn titiler_md_demo.main:app --host ${HOST} --port ${PORT}