Open shane0 opened 1 year ago
FROM python:3.9-slim-buster
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
FROM node:16-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
CMD ["npm", "start"]
fastapi sqlite
This will start all three services and you should be able to access the FastAPI backend at http://localhost:8000 and the React frontend at http://localhost:3000.