Skip to content

Commit

Permalink
ci(engine): Set ACL permissions under .tracecat dir in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Mar 23, 2024
1 parent b4be30d commit fda42f8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ ENV LANCEDB_CONFIG_DIR=/home/apiuser/.tracecat/lancedb

EXPOSE $PORT

# Install necessary packages, including acl
RUN apt-get update && \
apt-get install -y acl && \
rm -rf /var/lib/apt/lists/*

COPY scripts/install-packages.sh .
RUN chmod +x install-packages.sh && \
./install-packages.sh && \
Expand All @@ -28,9 +33,11 @@ COPY --chown=apiuser:apiuser ./pyproject.toml /app/pyproject.toml
COPY --chown=apiuser:apiuser ./requirements.txt /app/requirements.txt
COPY --chown=apiuser:apiuser ./README.md /app/README.md
COPY --chown=apiuser:apiuser ./LICENSE /app/LICENSE

RUN mkdir -p /home/apiuser/.tracecat && \
chown -R apiuser:apiuser /home/apiuser/.tracecat && \
chmod -R 775 /home/apiuser/.tracecat
chmod -R 755 /home/apiuser/.tracecat && \
setfacl -d -m u:apiuser:rwx /home/apiuser/.tracecat

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

Expand Down

0 comments on commit fda42f8

Please sign in to comment.