fix app directory permission for docker

This commit is contained in:
Jacob Van Meter 2024-01-29 13:04:33 -05:00
parent b5301e6f9d
commit ee48825354
1 changed files with 3 additions and 2 deletions

View File

@ -28,10 +28,11 @@ RUN poetry config virtualenvs.create false \
WORKDIR /app
RUN addgroup --system app && adduser --system --group app
RUN chown -R app:app /app
USER app
COPY src/ src/
COPY --chown=app:app src/ /app/src/
# https://stackoverflow.com/questions/29663459/python-app-does-not-print-anything-when-running-detached-in-docker
CMD ["python", "-m", "uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8000"]
#