fix: add .dockerignore and build step to optimize containerization

This commit is contained in:
2026-02-09 18:25:15 -06:00
parent 749bde1d4f
commit 6590657237
2 changed files with 56 additions and 0 deletions

54
.dockerignore Normal file
View File

@@ -0,0 +1,54 @@
# Dependencies
node_modules
# Production build
dist
# Environment variables
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
# IDE and editor files
.vscode
.idea
*.swp
*.swo
*~
# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Git
.git
.gitignore
# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
bun-debug.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Dependency directories
jspm_packages/

View File

@@ -6,6 +6,8 @@ COPY . .
ENV NODE_ENV=production
RUN bun install --frozen-lockfile --production
RUN bun run build
FROM joseluisq/static-web-server:2-alpine AS runner
WORKDIR /public