thibaud frere commited on
Commit ·
c7b266f
1
Parent(s): fc17cea
update
Browse filesFiles changed (2)
13 unmodified lines141516171819202113 unmodified lines# Copy the rest of the application codeCOPY app/ .# Note: assets in `src/content/assets/data` are already duplicated under `public/data` in the repo,# so no extra copy step is required here.# Build the applicationRUN npm run build13 unmodified lines14151617181920212223242526272813 unmodified lines# Copy the rest of the application codeCOPY app/ .# Ensure `public/data` is a real directory with real files (not a symlink)# This handles the case where `public/data` is a symlink in the repo, which# would be broken inside the container after COPY.RUN set -e; \if [ -e public ] && [ ! -d public ]; then rm -f public; fi; \mkdir -p public; \if [ -L public/data ] || { [ -e public/data ] && [ ! -d public/data ]; }; then rm -f public/data; fi; \mkdir -p public/data; \cp -a src/content/assets/data/. public/data/# Build the applicationRUN npm run build
27 unmodified lines28293031323334353627 unmodified lines```bashnpm run build```<small className="muted">Serving the `dist/` directory on any static host is enough to deliver the site.</small><br/><br/>A [slug-title].pdf and thumb.jpg are also generated at build time. You can find them in the public folder.### Deploy27 unmodified lines2829303132333435363727 unmodified lines```bashnpm run build```<small className="muted">- Serving the `dist/` directory on any static host is enough to deliver the site.</small><br/><small className="muted">- A [slug-title].pdf and thumb.jpg are also generated at build time. You can find them in the public folder.</small>### Deploy
Dockerfile+9-2
app/src/content/chapters/getting-started.mdx+4-3