Fixed RSS date/time
All checks were successful
Docker Deploy / build-and-push (push) Successful in 4m20s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 4m20s
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -46,35 +46,29 @@ RUN --mount=type=cache,id=pnpm,target=/.pnpm-store \
|
||||
|
||||
FROM build-deps AS builder
|
||||
|
||||
# Copy source code
|
||||
ARG PUBLIC_RSS_TIMEZONE
|
||||
ENV PUBLIC_RSS_TIMEZONE=${PUBLIC_RSS_TIMEZONE}
|
||||
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN pnpm run build
|
||||
|
||||
FROM node:24-alpine AS runtime
|
||||
|
||||
# Install pnpm for runtime
|
||||
RUN npm install -g pnpm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy built application
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
||||
# Copy production dependencies
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
|
||||
# Copy package.json for any runtime needs
|
||||
COPY package.json ./
|
||||
|
||||
# Set environment variables
|
||||
ENV HOST=0.0.0.0 \
|
||||
PORT=4321 \
|
||||
NODE_ENV=production
|
||||
|
||||
# Expose port
|
||||
EXPOSE 4321
|
||||
|
||||
# Start the application
|
||||
CMD ["node", "./dist/server/entry.mjs"]
|
||||
|
||||
Reference in New Issue
Block a user