Skip to content

Commit e26476b

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

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

backend/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SERVICE_TOKEN=myllservicetoken2024

backend/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ 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+
1417
# Expose the port the api runs in
1518
EXPOSE 8000
1619

frontend/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SERVICE_TOKEN=myllservicetoken2024

frontend/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ 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 /app
15+
COPY .env /app
16+
1417
# Make port 8501 available to the world outside this container
1518
EXPOSE 8501
1619

0 commit comments

Comments
 (0)