Spaces:
Sleeping
Sleeping
Merge pull request #19 from gvatsal60/non-root-docker-image
Browse files- Dockerfile +5 -0
- README.md +1 -0
Dockerfile
CHANGED
|
@@ -17,6 +17,9 @@
|
|
| 17 |
# ##########################################################################
|
| 18 |
FROM python:3.12-alpine
|
| 19 |
|
|
|
|
|
|
|
|
|
|
| 20 |
# ##########################################################################
|
| 21 |
# Maintainer
|
| 22 |
# ##########################################################################
|
|
@@ -35,6 +38,8 @@ COPY requirements.txt ./
|
|
| 35 |
|
| 36 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 37 |
|
|
|
|
|
|
|
| 38 |
# ##########################################################################
|
| 39 |
# Expose Port
|
| 40 |
# ##########################################################################
|
|
|
|
| 17 |
# ##########################################################################
|
| 18 |
FROM python:3.12-alpine
|
| 19 |
|
| 20 |
+
RUN addgroup -S nonroot \
|
| 21 |
+
&& adduser -S nonroot -G nonroot
|
| 22 |
+
|
| 23 |
# ##########################################################################
|
| 24 |
# Maintainer
|
| 25 |
# ##########################################################################
|
|
|
|
| 38 |
|
| 39 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 40 |
|
| 41 |
+
USER nonroot
|
| 42 |
+
|
| 43 |
# ##########################################################################
|
| 44 |
# Expose Port
|
| 45 |
# ##########################################################################
|
README.md
CHANGED
|
@@ -17,6 +17,7 @@ license: apache-2.0
|
|
| 17 |
# Gemini Chatbot
|
| 18 |
|
| 19 |
[](https://img.shields.io/github/license/gvatsal60/gemini-chatbot)
|
|
|
|
| 20 |
[](https://results.pre-commit.ci/latest/github/gvatsal60/gemini-chatbot/HEAD)
|
| 21 |
[](https://app.codacy.com/gh/gvatsal60/gemini-chatbot/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
| 22 |
[](https://www.codefactor.io/repository/github/gvatsal60/gemini-chatbot)
|
|
|
|
| 17 |
# Gemini Chatbot
|
| 18 |
|
| 19 |
[](https://img.shields.io/github/license/gvatsal60/gemini-chatbot)
|
| 20 |
+
[](https://sonarcloud.io/summary/new_code?id=gvatsal60_gemini-chatbot)
|
| 21 |
[](https://results.pre-commit.ci/latest/github/gvatsal60/gemini-chatbot/HEAD)
|
| 22 |
[](https://app.codacy.com/gh/gvatsal60/gemini-chatbot/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
| 23 |
[](https://www.codefactor.io/repository/github/gvatsal60/gemini-chatbot)
|