Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@ RUN apt-get install software-properties-common -y \
&& apt-get update

RUN apt-get install python3.10 -y \
&& apt-get install python3-pip -y
&& apt-get install python3-pip -y

FROM builder

RUN mkdir -p /app \
&& useradd -d /app -s /bin/bash app \
&& chown -R app:app /app
WORKDIR /app

COPY requirements.txt /app

RUN pip install -r requirements.txt
RUN pip3 install -r requirements.txt

COPY app /app
COPY app/app.py /app

EXPOSE 5000

USER app

ENTRYPOINT [ "python3", "app.py" ]