diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..1540bfb --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "css.lint.unknownAtRules": "ignore", + "scss.lint.unknownAtRules": "ignore", + "less.lint.unknownAtRules": "ignore" +} diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..8296a65 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,8 @@ +{ + auto_https off +} + +:80 { + root * /srv + file_server +} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ce7a292..7aca206 100644 --- a/Dockerfile +++ b/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;"] \ No newline at end of file +# Copy Caddy configuration file +COPY Caddyfile /etc/caddy/Caddyfile \ No newline at end of file diff --git a/index.html b/index.html index b62f067..b7e83d9 100644 --- a/index.html +++ b/index.html @@ -19,31 +19,22 @@