Skip to content

Commit 81d9ece

Browse files
Add Env File to Frontend
1 parent c00d0ac commit 81d9ece

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/build_containers.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
set -ux
5050
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
5151
pushd frontend
52+
echo "NEXT_PUBLIC_API_URL=http://k8s-wn-01.cam.uchc.edu:30001" > .env
5253
docker build \
5354
--no-cache \
5455
--file Dockerfile \

frontend/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ WORKDIR /app
88
COPY package.json package-lock.json* pnpm-lock.yaml* ./
99
RUN npm install
1010

11+
# 4. Copy .env file
12+
COPY .env ./
13+
1114
# 5. Copy the rest of the app
1215
COPY . .
1316

0 commit comments

Comments
 (0)