Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -2,9 +2,11 @@
|
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
FROM python:3.12.5-slim
|
|
|
|
|
5 |
|
6 |
RUN useradd -m -u 1000 user
|
7 |
-
USER
|
8 |
ENV PATH="/home/user/.local/bin:$PATH"
|
9 |
|
10 |
WORKDIR /app
|
@@ -12,7 +14,7 @@ WORKDIR /app
|
|
12 |
COPY --chown=user ./requirements.txt requirements.txt
|
13 |
|
14 |
# RUN apt-get update && apt-get install -y git
|
15 |
-
|
16 |
|
17 |
RUN pip install git+https://github.com/LIAAD/yake
|
18 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
FROM python:3.12.5-slim
|
5 |
+
USER root
|
6 |
+
RUN apk add --no-cache git
|
7 |
|
8 |
RUN useradd -m -u 1000 user
|
9 |
+
USER user
|
10 |
ENV PATH="/home/user/.local/bin:$PATH"
|
11 |
|
12 |
WORKDIR /app
|
|
|
14 |
COPY --chown=user ./requirements.txt requirements.txt
|
15 |
|
16 |
# RUN apt-get update && apt-get install -y git
|
17 |
+
|
18 |
|
19 |
RUN pip install git+https://github.com/LIAAD/yake
|
20 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|