systemforge-ai / Dockerfile
JacobJA's picture
Clean fresh deployment
34b6cef
Raw
History Blame Contribute Delete
380 Bytes
FROM node:20-bullseye
RUN apt-get update && apt-get install -y python3 python3-pip python3-venv
WORKDIR /app
COPY . .
RUN pip3 install --no-cache-dir -r requirements.txt
WORKDIR /app/frontend
RUN npm install
RUN npm run build
WORKDIR /app
EXPOSE 7860
CMD sh -c "python3 -m uvicorn src.api.main:app --host 0.0.0.0 --port 8000 & cd frontend && npm run start -- --port 7860"