Skip to content

Commit

Permalink
ci(fix): Set and grant permissions to lance config dir
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Mar 23, 2024
1 parent e891f1a commit ac51ad4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM python:3.12-slim-bookworm
ENV API_MODULE=tracecat.api.app:app
ENV HOST=0.0.0.0
ENV PORT=8000
ENV LANCEDB_CONFIG_DIR=/home/apiuser/.config/lancedb

EXPOSE $PORT

Expand Down Expand Up @@ -30,6 +31,10 @@ COPY --chown=apiuser:apiuser ./LICENSE /app/LICENSE
RUN mkdir -p /home/apiuser/.tracecat && \
chown -R apiuser:apiuser /home/apiuser/.tracecat

# Create lancedb directory
RUN mkdir -p $LANCEDB_CONFIG_DIR && \
chown -R apiuser:apiuser $LANCEDB_CONFIG_DIR

RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt

CMD ["sh", "-c", "python3 -m uvicorn $API_MODULE --host $HOST --port $PORT --reload"]

0 comments on commit ac51ad4

Please sign in to comment.