fp/services/our/Dockerfile
CJ_Clippy 4b773b1033
Some checks failed
ci / build (push) Failing after 0s
ci / Tests & Checks (push) Failing after 1s
wget the pytorch model
2025-07-19 08:44:02 -08:00

45 lines
1.0 KiB
Docker

FROM node:22
# Set working directory
WORKDIR /app
# Install system-level dependencies
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
build-essential \
git \
inotify-tools \
ffmpeg \
mktorrent \
python3 \
python3-pip \
python3-venv \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Install IPFS Kubo
COPY --from=ipfs/kubo:v0.36.0 /usr/local/bin/ipfs /usr/local/bin/ipfs
# Bundle the vibeui pytorch model
RUN mkdir -p /app/dist/vibeui \
&& wget -q https://gitea.futureporn.net/futureporn/fp/raw/branch/main/apps/vibeui/best.pt -O /app/dist/vibeui/vibeui.pt
# Copy and install dependencies
COPY package.json package-lock.json ./
RUN npm install --ignore-scripts=false --foreground-scripts --verbose
# Copy Prisma schema and generate client
COPY prisma ./prisma
RUN npx prisma generate
# Copy the rest of the code
COPY . .
# Build the app
RUN npm run build
# Expose the port
EXPOSE 5000
# Start the app
CMD ["npm", "run", "start:server"]