Update Dockerfile
Browse files- Dockerfile +6 -10
Dockerfile
CHANGED
@@ -14,22 +14,18 @@ RUN apt-get update -qq && \
|
|
14 |
apt-get clean && \
|
15 |
rm -rf /var/lib/apt/lists/*
|
16 |
|
|
|
|
|
17 |
RUN --mount=type=secret,id=GIT_REPO_URL \
|
18 |
--mount=type=secret,id=GIT_ACCESS_TOKEN \
|
19 |
-
git clone https://$(cat /run/secrets/GIT_ACCESS_TOKEN)@$(cat /run/secrets/GIT_REPO_URL | sed 's#https://##')
|
20 |
-
cd /app && \
|
21 |
git config --global --add safe.directory /app
|
22 |
|
23 |
-
WORKDIR /app
|
24 |
-
COPY requirements.txt .
|
25 |
-
COPY server.py .
|
26 |
-
COPY GeminiDev/ ./GeminiDev/
|
27 |
-
|
28 |
RUN --mount=type=cache,target=/root/.cache/pip \
|
29 |
-
|
30 |
|
31 |
-
RUN find
|
32 |
-
find
|
33 |
chmod +x server.py
|
34 |
|
35 |
EXPOSE 7860
|
|
|
14 |
apt-get clean && \
|
15 |
rm -rf /var/lib/apt/lists/*
|
16 |
|
17 |
+
WORKDIR /app
|
18 |
+
|
19 |
RUN --mount=type=secret,id=GIT_REPO_URL \
|
20 |
--mount=type=secret,id=GIT_ACCESS_TOKEN \
|
21 |
+
git clone https://$(cat /run/secrets/GIT_ACCESS_TOKEN)@$(cat /run/secrets/GIT_REPO_URL | sed 's#https://##') . && \
|
|
|
22 |
git config --global --add safe.directory /app
|
23 |
|
|
|
|
|
|
|
|
|
|
|
24 |
RUN --mount=type=cache,target=/root/.cache/pip \
|
25 |
+
pip3 install --no-cache-dir -r requirements.txt
|
26 |
|
27 |
+
RUN find . -type d -exec chmod 755 {} \; && \
|
28 |
+
find . -type f -exec chmod 644 {} \; && \
|
29 |
chmod +x server.py
|
30 |
|
31 |
EXPOSE 7860
|