Skip to content

Commit 34d5cb5

Browse files
refactor: remove local development site URL from Dockerfile; update Cloud Build configuration to set environment variable for production
1 parent 1d222a7 commit 34d5cb5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ RUN npm ci
1414
# Copy source code
1515
COPY . .
1616

17-
# Set site URL for local development
18-
ENV ASTRO_SITE=http://localhost:8080/
19-
2017
# Build the application
2118
RUN npm run build
2219

cloudbuild.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ steps:
2121
- '--platform'
2222
- 'managed'
2323
- '--allow-unauthenticated'
24+
- '--port'
25+
- '8080'
26+
- '--memory'
27+
- '512Mi'
28+
- '--set-env-vars'
29+
- 'ASTRO_SITE=https://docs.gdgalgiers.dev/'
2430

2531
images:
2632
- 'gcr.io/erudite-marker-465011-c6/gdg-docs:latest'

0 commit comments

Comments
 (0)