Spaces:
Build error
Build error
mphycx
commited on
Commit
·
e11282b
1
Parent(s):
9dd0989
Fix dockerfile git
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
@@ -1,5 +1,12 @@
|
|
1 |
FROM python:3.9-slim-bullseye as pdfgpt-chat-img
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
# Expose the secret OPENAI_API_KEY at buildtime and use its value as git remote URL
|
4 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
5 |
git init && \
|
|
|
1 |
FROM python:3.9-slim-bullseye as pdfgpt-chat-img
|
2 |
|
3 |
+
RUN apt-get update && apt-get install -y \
|
4 |
+
build-essential \
|
5 |
+
curl \
|
6 |
+
software-properties-common \
|
7 |
+
git \
|
8 |
+
&& rm -rf /var/lib/apt/lists/*
|
9 |
+
|
10 |
# Expose the secret OPENAI_API_KEY at buildtime and use its value as git remote URL
|
11 |
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
|
12 |
git init && \
|