-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (24 loc) · 735 Bytes
/
Dockerfile
File metadata and controls
29 lines (24 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM gcc:latest AS builder
RUN apt-get update && apt-get install -y make
WORKDIR /app
COPY analyzer/Makefile ./
COPY analyzer/src ./src
RUN make all
FROM node:lts AS frontend-builder
WORKDIR /app
COPY client/package*.json ./
RUN npm install
COPY client/ .
ENV VITE_API_URL="/api"
RUN npm run build
FROM python:3.10-slim
RUN apt-get update && apt-get install -y clang jq graphviz \
--no-install-recommends && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY server/requirements.txt .
RUN pip install -r requirements.txt
COPY --from=builder /app/analyzer /usr/local/bin/analyzer
COPY server/server.py .
COPY --from=frontend-builder /app/dist ./public
EXPOSE 8080
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8080"]