Skip to content

Commit 27e224e

Browse files
authored
pull docker image from quay (#114)
Signed-off-by: Mandana Vaziri <[email protected]>
1 parent bdcb3cd commit 27e224e

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

dockerfile

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
# Use an official Python runtime as a parent image
2-
FROM python:3.11-slim
1+
FROM --platform=linux/arm64/v8 python:3.11-slim
32

4-
# Set the working directory in the container
53
WORKDIR /pdl
64

7-
# Copy the current directory contents into the container at /app
8-
COPY . /pdl
5+
RUN apt-get update && apt-get install -y git
96

10-
# Install any needed dependencies specified in requirements.txt
11-
RUN pip install .
12-
RUN pip install '.[all]'
7+
COPY . /pdl
138

9+
RUN pip install prompt-declaration-language
10+
RUN pip install prompt-declaration-language[examples]
1411

15-
# Run app.py when the container launches
16-
ENTRYPOINT ["pdl"]
12+
ENTRYPOINT ["pdl"]

examples/react/wikipedia.pdl

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ text:
4848
except wikipedia.WikipediaException as e:
4949
result = str(e)
5050
until: ${ action.name != "Search" }
51-
- "\n"
51+

src/pdl/pdl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def main():
244244
watsonx_project_id,
245245
"--rm",
246246
"-it",
247-
"pdl",
247+
"quay.io/project_pdl/pdl",
248248
*args,
249249
],
250250
check=True,

0 commit comments

Comments
 (0)