NAS 기본 설정 변경

This commit is contained in:
2026-03-21 10:45:31 +09:00
parent 14236f355a
commit 7ab0733400
4 changed files with 44 additions and 17 deletions

View File

@@ -5,12 +5,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
docker.io \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd -g 100 nasusers 2>/dev/null || true \
&& groupadd -g 65540 dockerhost \
&& useradd -u 1026 -g 100 -G 65540 -m deployer
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py /app/app.py
USER deployer
ENV PYTHONUNBUFFERED=1
EXPOSE 9000
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "9000"]