Skip to content

Commit

Permalink
fixed perspective api key arg
Browse files Browse the repository at this point in the history
  • Loading branch information
hiftikha committed Aug 22, 2024
1 parent c3a081d commit b357741
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile.perspective
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ RUN poetry config virtualenvs.create false \
# Copy the entire project
COPY . /app

# Set the API key as an environment variable
ARG PERSPECTIVE_API_KEY
ENV PERSPECTIVE_API_KEY=$PERSPECTIVE_API_KEY

# Expose the port the app runs on
EXPOSE 8000

Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
build:
context: .
dockerfile: Dockerfile.perspective
args:
- PERSPECTIVE_API_KEY=${PERSPECTIVE_API_KEY}
image: perspective-ranker:latest
environment:
- PERSPECTIVE_API_KEY=${PERSPECTIVE_API_KEY}
Expand All @@ -18,6 +20,8 @@ services:
build:
context: .
dockerfile: Dockerfile.perspective
args:
- PERSPECTIVE_API_KEY=${PERSPECTIVE_API_KEY}
environment:
- PERSPECTIVE_API_KEY=${PERSPECTIVE_API_KEY}
volumes:
Expand Down

0 comments on commit b357741

Please sign in to comment.