chore: initialize project with Vite, Tailwind CSS, and Pokedex API

- Added package.json with project metadata and dependencies
- Created postcss.config.js for Tailwind CSS and Autoprefixer integration
- Added style.css to include Tailwind's base, components, and utilities
- Configured tailwind.config.js to specify content sources for class scanning
- Set up vite.config.js for build configuration targeting ES2020
This commit is contained in:
Peter Wood
2025-04-22 13:26:40 -04:00
commit 6d12242cfb
12 changed files with 3382 additions and 0 deletions

30
Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
# ---- Build Stage ----
FROM node:20-alpine AS build
WORKDIR /app
# Copy package files and install dependencies
# Copy package.json AND package-lock.json (if available)
COPY package*.json ./
RUN npm install
# Copy the rest of the application code
COPY . .
# Build the application
RUN npm run build
# ---- Serve Stage ----
FROM nginx:stable-alpine
# Copy built assets from the build stage
COPY --from=build /app/dist /usr/share/nginx/html
# Optional: Copy a custom Nginx configuration if needed
# COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80
# Start Nginx in the foreground
CMD ["nginx", "-g", "daemon off;"]