Add Docker configuration for frontend and include new assets while organizing unused ones.

This commit is contained in:
Dhamari Trice-Hanson 2026-01-02 16:39:16 -05:00
parent 371b3f52be
commit 7d2973c3e9
26 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,9 @@
node_modules
.DS_Store
.env
.env.*
build
.svelte-kit
npm-debug.log
yarn-error.log
.git

View file

@ -0,0 +1,40 @@
# Stage 1: Build the application
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package.json and configuration files
COPY package.json package-lock.json* svelte.config.js vite.config.ts* tsconfig.json* ./
# Install all dependencies
RUN npm ci --ignore-scripts
# Copy the rest of the application code
COPY . .
# Build the application
RUN npm run build
# Prune dev dependencies to reduce image size for the next stage
RUN npm prune --production
# Stage 2: Create the production image
FROM node:20-alpine
WORKDIR /app
# Install runtime dependencies (if any specific syste libraries needed, typically none for pure node)
# Copy the built application from the builder stage
COPY --from=builder /app/build ./build
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./package.json
# Expose the port the app runs on (SvelteKit node adapter starts on 3000 by default)
EXPOSE 3000
# Set Node environment to production
ENV NODE_ENV=production
# Start the application
CMD ["node", "build"]

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

View file

@ -0,0 +1,3 @@
<svg preserveAspectRatio="none" width="100%" height="100%" overflow="visible" style="display: block;" viewBox="0 0 1134 10" fill="none" xmlns="http://www.w3.org/2000/svg">
<path id="Vector 5" d="M0 5H1134" stroke="var(--stroke-0, #91C8FF)" stroke-width="10"/>
</svg>

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,010 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB