mirror of
https://github.com/acedanger/pokemon.git
synced 2025-12-05 22:50:13 -08:00
chore: update dependencies and add new features
- Added Font Awesome and Annyang for enhanced UI and voice recognition capabilities. - Updated package.json to include new dependencies: @fortawesome/fontawesome-free, annyang, and wrangler. - Modified postcss.config.js for proper syntax. - Updated style.css to include Font Awesome styles and added new styles for voice search button and footer. - Adjusted tailwind.config.js to scan all relevant files for dynamic classes. - Added VSCode settings to ignore unknown at-rules in CSS, SCSS, and LESS. - Created a Caddyfile for server configuration with basic settings.
This commit is contained in:
21
Dockerfile
21
Dockerfile
@@ -1,11 +1,10 @@
|
||||
# ---- Build Stage ----
|
||||
FROM node:20-alpine AS build
|
||||
FROM node:23-slim AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files and install dependencies
|
||||
# Copy package.json AND package-lock.json (if available)
|
||||
COPY package*.json ./
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the application code
|
||||
@@ -15,16 +14,12 @@ COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# ---- Serve Stage ----
|
||||
FROM nginx:stable-alpine
|
||||
FROM caddy:2.10.0-alpine
|
||||
|
||||
WORKDIR /srv
|
||||
|
||||
# Copy built assets from the build stage
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
COPY --from=build /app/dist /srv
|
||||
|
||||
# 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;"]
|
||||
# Copy Caddy configuration file
|
||||
COPY Caddyfile /etc/caddy/Caddyfile
|
||||
Reference in New Issue
Block a user