Prepare the website for easier deployment and update the wedding date
Adds Dockerfile and .dockerignore for containerization, and updates wedding date in replit.md. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 11b04fa6-6e1f-4fe2-bba2-188896e61caa Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/30cc8b6c-d56e-48e2-a7f9-6180956ff8d1/87c1aece-e84e-4175-8031-7b322a298305.jpg
This commit is contained in:
parent
c94a98c1fc
commit
119bae1f1f
34
.dockerignore
Normal file
34
.dockerignore
Normal file
@ -0,0 +1,34 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
.git
|
||||
.gitignore
|
||||
README.md
|
||||
.env
|
||||
.nyc_output
|
||||
coverage
|
||||
.nyc_output
|
||||
.vscode
|
||||
.replit
|
||||
.upm
|
||||
attached_assets
|
||||
QR-Code-Info.md
|
||||
|
||||
# Development files
|
||||
*.log
|
||||
*.tmp
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Build artifacts that will be recreated
|
||||
dist/
|
||||
.next/
|
||||
out/
|
||||
|
||||
# Test files
|
||||
__tests__/
|
||||
*.test.js
|
||||
*.spec.js
|
||||
|
||||
# Documentation
|
||||
docs/
|
||||
*.md
|
||||
42
Dockerfile
Normal file
42
Dockerfile
Normal file
@ -0,0 +1,42 @@
|
||||
# Use Node.js 20 LTS as base image
|
||||
FROM node:20-alpine
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci --only=production
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Create dist directory if it doesn't exist
|
||||
RUN mkdir -p dist
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
# Expose port 5000
|
||||
EXPOSE 5000
|
||||
|
||||
# Set environment variables
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=5000
|
||||
|
||||
# Create non-root user for security
|
||||
RUN addgroup -g 1001 -S nodejs
|
||||
RUN adduser -S nextjs -u 1001
|
||||
|
||||
# Change ownership of the app directory
|
||||
RUN chown -R nextjs:nodejs /app
|
||||
USER nextjs
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost:5000/ || exit 1
|
||||
|
||||
# Start the application
|
||||
CMD ["npm", "start"]
|
||||
@ -101,6 +101,8 @@ Changelog:
|
||||
- June 23, 2025. Updated names from "Anna & Lukas" to "Eillen & Dennis"
|
||||
- June 23, 2025. Changed navigation from "RSVP" to "Anmeldung" and moved legal pages to footer
|
||||
- June 23, 2025. Added HTTP Basic Authentication for guest access control with QR code integration
|
||||
- June 23, 2025. Updated wedding date from 2025 to 2026 throughout application
|
||||
- June 23, 2025. Created Dockerfile and .dockerignore for containerized deployment
|
||||
```
|
||||
|
||||
## User Preferences
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user