Files
explore/Dockerfile.lux
T
zeekayandHanzo Dev 10beed1983 Add LUX branding and monochromatic theme
- Configure Inter font as default for all text
- Create monochromatic black/white/grey color scheme
- Add LUX logo and favicon
- Set up GitHub Action for automated builds
- Configure production environment variables


Co-authored-by: Hanzo Dev <[email protected]>
2025-06-26 21:28:57 +00:00

67 lines
1.3 KiB
Docker

# Build stage
FROM node:22.11.0-alpine AS builder
RUN apk add --no-cache libc6-compat python3 make g++ git
WORKDIR /app
# Copy package files
COPY package.json yarn.lock ./
COPY tsconfig.json ./
COPY next.config.js ./
COPY postcss.config.js ./
COPY tailwind.config.ts ./
# Copy necessary directories
COPY types ./types
COPY lib ./lib
COPY configs ./configs
COPY toolkit ./toolkit
COPY ui ./ui
COPY pages ./pages
COPY nextjs ./nextjs
COPY theme ./theme
COPY icons ./icons
COPY mocks ./mocks
COPY jest ./jest
COPY playwright ./playwright
COPY deploy ./deploy
COPY public ./public
COPY stubs ./stubs
# Copy environment file
COPY .env.production .env.local
# Install dependencies
RUN yarn install --frozen-lockfile --network-timeout 100000
# Build the application
RUN yarn build
# Production stage
FROM node:22.11.0-alpine AS runner
RUN apk add --no-cache --upgrade bash curl jq unzip
WORKDIR /app
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
# Copy built application
COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public
# Set permissions
RUN chown -R nextjs:nodejs /app
USER nextjs
EXPOSE 3000
ENV PORT=3000
ENV NODE_ENV=production
CMD ["node", "server.js"]