vs docker plz work
This commit is contained in:
+20
-8
@@ -1,29 +1,41 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl \
|
||||
build-essential \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Node.js
|
||||
RUN apt-get update && apt-get install -y curl && \
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
||||
apt-get install -y nodejs && \
|
||||
apt-get clean
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy Python requirements
|
||||
# Copy and install Python dependencies (using regular pip - simpler for Docker)
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN pip install --no-cache-dir --upgrade pip && \
|
||||
pip install --no-cache-dir \
|
||||
fastapi \
|
||||
uvicorn[standard] \
|
||||
pydantic \
|
||||
aiohttp \
|
||||
aiosqlite \
|
||||
pyyaml \
|
||||
bleak \
|
||||
requests
|
||||
|
||||
# Copy backend
|
||||
# Copy backend and simulator
|
||||
COPY backend backend/
|
||||
COPY simulator simulator/
|
||||
|
||||
# Copy and build frontends
|
||||
COPY frontend/dashboard frontend/dashboard/
|
||||
COPY frontend/kiosk frontend/kiosk/
|
||||
|
||||
# Build frontends
|
||||
WORKDIR /app/frontend/dashboard
|
||||
RUN npm install && npm run build
|
||||
|
||||
COPY frontend/kiosk /app/frontend/kiosk
|
||||
WORKDIR /app/frontend/kiosk
|
||||
RUN npm install && npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user