mirror of
https://github.com/cyclotruc/gitingest.git
synced 2026-04-28 08:39:29 +00:00
Fix file management and permissions issues (#23)
This commit is contained in:
parent
41a76f32d9
commit
9996a06a94
3 changed files with 118 additions and 4 deletions
|
|
@ -2,9 +2,18 @@ FROM python:3.12
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
# Create a non-root user
|
||||
RUN useradd -m -u 1000 appuser
|
||||
|
||||
COPY src/ ./
|
||||
COPY requirements.txt ./
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# Change ownership of the application files
|
||||
RUN chown -R appuser:appuser /app
|
||||
|
||||
# Switch to non-root user
|
||||
USER appuser
|
||||
|
||||
CMD ["uvicorn", "main:app", "--reload"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue