Skip to content

Commit cb2252d

Browse files
committed
Add Dockerfile for microsites setup and content management
1 parent a36a629 commit cb2252d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM us-central1-docker.pkg.dev/specautomation-458709/microsites/microsites-base:dev
2+
ARG ASTRO_BASE_PATH=/case/
3+
ENV ASTRO_BASE_PATH=/case/
4+
5+
# This clears some test upstream content bundled in the base image, preserving content.config.ts
6+
RUN if [ -f /app/src/content/content.config.ts ]; then \
7+
cp /app/src/content/content.config.ts /tmp/content.config.ts; \
8+
fi && \
9+
rm -rf /app/src/content && \
10+
mkdir -p /app/src/content/standards && \
11+
if [ -f /tmp/content.config.ts ]; then \
12+
cp /tmp/content.config.ts /app/src/content/content.config.ts; \
13+
rm /tmp/content.config.ts; \
14+
fi
15+
16+
17+
COPY --chown=astro:nodejs ob_v3p0/microsites /app/src/content/standards/
18+
19+
# The base image handles everything:
20+
# 1. Runtime processes the assets (transforms paths, copies assets)
21+
# 2. Starts the Astro server
22+
# No additional commands needed!

0 commit comments

Comments
 (0)