Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadll authored Oct 26, 2024
1 parent c45dd3a commit c0c0632
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
FROM python:3.11-alpine

RUN apk add --no-cache shadow

RUN seradd -ms /bin/bash admin

RUN useradd -ms /bin/bash admin
WORKDIR /code


COPY ./requirements.txt /code/requirements.txt


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


COPY ./app /code/app


RUN chown -R admin /code/app/*

USER admin

0 comments on commit c0c0632

Please sign in to comment.