Add Docker configuration for frontend and include new assets while organizing unused ones.
9
resolution-frontend/.dockerignore
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
node_modules
|
||||
.DS_Store
|
||||
.env
|
||||
.env.*
|
||||
build
|
||||
.svelte-kit
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
.git
|
||||
40
resolution-frontend/Dockerfile
Normal 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"]
|
||||
BIN
resolution-frontend/src/lib/assets/dark_bg.png
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
resolution-frontend/src/lib/assets/firework_burst.png
Normal file
|
After Width: | Height: | Size: 667 KiB |
BIN
resolution-frontend/src/lib/assets/fireworks_gif.png
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
resolution-frontend/src/lib/assets/gold_glitter_border.png
Normal file
|
After Width: | Height: | Size: 670 KiB |
BIN
resolution-frontend/src/lib/assets/hero_bg.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |
BIN
resolution-frontend/src/lib/assets/light_blue_bg.png
Normal file
|
After Width: | Height: | Size: 175 KiB |
BIN
resolution-frontend/src/lib/assets/onboarding_bg.png
Normal file
|
After Width: | Height: | Size: 2.2 MiB |
BIN
resolution-frontend/src/lib/assets/running_person.png
Normal file
|
After Width: | Height: | Size: 427 KiB |
BIN
resolution-frontend/src/lib/assets/stair.png
Normal file
|
After Width: | Height: | Size: 143 KiB |
BIN
resolution-frontend/src/lib/assets/sticky_note_1.png
Normal file
|
After Width: | Height: | Size: 167 KiB |
BIN
resolution-frontend/src/lib/assets/sticky_note_2.png
Normal file
|
After Width: | Height: | Size: 116 KiB |
BIN
resolution-frontend/src/lib/assets/sticky_note_3.png
Normal file
|
After Width: | Height: | Size: 117 KiB |
BIN
resolution-frontend/src/lib/assets/swirl_overlay.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |
3
resolution-frontend/src/lib/assets/vector_divider.svg
Normal 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 |
BIN
resolution-frontend/unused_assets/Untitled_Artwork 27 1.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
resolution-frontend/unused_assets/big_firework.png
Normal file
|
After Width: | Height: | Size: 2 MiB |
BIN
resolution-frontend/unused_assets/fireworkdsgif1.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
resolution-frontend/unused_assets/fireworksgif2.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
resolution-frontend/unused_assets/hackathon_photo.png
Normal file
|
After Width: | Height: | Size: 1,010 KiB |
BIN
resolution-frontend/unused_assets/onboarding-1.png
Normal file
|
After Width: | Height: | Size: 2.4 MiB |
BIN
resolution-frontend/unused_assets/orpheus_station.png
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
resolution-frontend/unused_assets/sparkly_border.png
Normal file
|
After Width: | Height: | Size: 666 KiB |
BIN
resolution-frontend/unused_assets/sticky_note_curled.png
Normal file
|
After Width: | Height: | Size: 313 KiB |
BIN
resolution-frontend/unused_assets/swirl 1.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |