Desinger-System / Dockerfile
o134's picture
Grouping tasks by day and monthly drafts (Python Upload)
9750276 verified
Raw
History Blame Contribute Delete
545 Bytes
FROM node:22-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
ENV CI=true
# Build stage
FROM base AS build
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm run build
# Final stage
FROM base
COPY --from=build /usr/src/app /usr/src/app
WORKDIR /usr/src/app
# Expose port 7860 (Hugging Face default)
EXPOSE 7860
ENV PORT=7860
# Set production environment
ENV NODE_ENV=production
# Start the application
CMD [ "pnpm", "start" ]