fix: Email template improvements
This commit is contained in:
@@ -9,16 +9,21 @@ RUN apk add --no-cache dumb-init git curl
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
# Copy package files from backend directory
|
||||
COPY backend/package*.json ./
|
||||
|
||||
# Install all dependencies (including dev for building)
|
||||
RUN npm install && npm cache clean --force
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
# Copy logo from frontend for email templates (needed for build)
|
||||
RUN mkdir -p frontend/public/images/logos
|
||||
COPY frontend/public/images/logos/motovaultpro-logo-title.png frontend/public/images/logos/
|
||||
|
||||
# Build the application
|
||||
# Copy backend source code
|
||||
COPY backend/ .
|
||||
|
||||
# Build the application (prebuild will encode logo)
|
||||
ENV DOCKER_BUILD=true
|
||||
RUN npm run build
|
||||
|
||||
# Stage 2: Production runtime
|
||||
@@ -31,7 +36,7 @@ RUN apk add --no-cache dumb-init curl postgresql-client
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files and any lock file generated in builder stage
|
||||
COPY package*.json ./
|
||||
COPY backend/package*.json ./
|
||||
COPY --from=builder /app/package-lock.json ./
|
||||
|
||||
# Install only production dependencies
|
||||
@@ -52,7 +57,7 @@ COPY --from=builder /app/src/features /app/migrations/features
|
||||
COPY --from=builder /app/src/core /app/migrations/core
|
||||
|
||||
# Copy entrypoint script for permission checks
|
||||
COPY scripts/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
||||
COPY backend/scripts/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
||||
RUN chmod 755 /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
# Change ownership to non-root user
|
||||
|
||||
Reference in New Issue
Block a user