Skip to content

Commit 4439354

Browse files
committed
Correct pass token in deployment
1 parent 8f28857 commit 4439354

File tree

6 files changed

+7
-17
lines changed

6 files changed

+7
-17
lines changed

backend/.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

backend/Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ RUN pip install --no-cache-dir -r requirements.txt
1111
# Copy backend code into the container at /api
1212
COPY ./api /api
1313

14-
# Copy .env file into the container at /api
15-
COPY .env /api
16-
17-
# Export .env variables
18-
ENV $(cat .env | xargs)
19-
2014
# Expose the port the api runs in
2115
EXPOSE 8000
2216

docker-compose-ghimages.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
environment:
99
- MODULE_NAME=api.main
1010
- VARIABLE_NAME=api
11-
11+
- SERVICE_TOKEN=myllservicetoken2024
1212

1313
frontend:
1414
image: ghcr.io/adribaeza/llm-tinyllama-frontend:latest
@@ -18,4 +18,6 @@ services:
1818
- "8501:8501"
1919
depends_on:
2020
- backend
21+
environment:
22+
- SERVICE_TOKEN=myllservicetoken2024
2123

docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
environment:
1010
- MODULE_NAME=api.main
1111
- VARIABLE_NAME=api
12-
12+
- SERVICE_TOKEN=myllservicetoken2024
1313

1414
frontend:
1515
build:
@@ -19,4 +19,6 @@ services:
1919
ports:
2020
- "8501:8501"
2121
depends_on:
22-
- backend
22+
- backend
23+
environment:
24+
- SERVICE_TOKEN=myllservicetoken2024

frontend/.env

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ COPY . /app
1111
COPY requirements.txt /app/
1212
RUN pip install --no-cache-dir -r requirements.txt
1313

14-
# Copy .env file into the container at /api
15-
COPY .env /api
16-
17-
# Export .env variables
18-
ENV $(cat .env | xargs)
19-
2014
# Make port 8501 available to the world outside this container
2115
EXPOSE 8501
2216

0 commit comments

Comments
 (0)