Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
itchibli committed Mar 26, 2024
1 parent 74e8f57 commit 6b8d141
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@ RUN useradd --create-home appuser

WORKDIR /code

COPY --chown=appuser:appuser ./setup.py /code/setup.py
COPY --chown=appuser:appuser ./requirements.txt /code/requirements.txt
COPY --chown=appuser:appuser ./README.md /code/README.md
COPY --chown=appuser:appuser ./src /code/src
COPY --chown=appuser:appuser --chmod=644 ./setup.py /code/setup.py
COPY --chown=appuser:appuser --chmod=644 ./requirements.txt /code/requirements.txt
COPY --chown=appuser:appuser --chmod=644 ./README.md /code/README.md
COPY --chown=appuser:appuser --chmod=644 ./src /code/src

RUN pip install /code

COPY --chown=appuser:appuser ./controller /code/controller

RUN find /code -type f -exec chmod 644 {} \;

RUN find /code -type d -exec chmod 755 {} \;

USER appuser

CMD ["uvicorn", "controller.controller:app", "--host", "0.0.0.0", "--port", "80"]

0 comments on commit 6b8d141

Please sign in to comment.