-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 926 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 926 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
30
# Exploitfarm Dockerfile UUID signature
# c9ce2441-d842-44d7-9178-dd1617efb8f6
# Needed for run.py to detect the Dockerfile
FROM --platform=$BUILDPLATFORM oven/bun AS frontend
ENV NODE_ENV=production
WORKDIR /build
COPY ./frontend/package.json ./frontend/bun.lockb /build/
RUN bun install
COPY ./frontend/ .
RUN bun run build
#Building main conteiner
FROM --platform=$TARGETARCH python:3.14-slim AS base
RUN pip install uv
RUN apt-get update && apt-get install -y --no-install-recommends libcapstone-dev build-essential cmake pkg-config
WORKDIR /execute
ADD ./backend/requirements.txt /execute/requirements.txt
RUN uv pip install --system --no-cache -r requirements.txt
COPY ./client/ /tmp/client
RUN uv pip install --system --no-cache /tmp/client && rm -rf /tmp/client
FROM --platform=$TARGETARCH base AS final
COPY ./backend/ /execute/
COPY --from=frontend /build/dist/ ./frontend/
CMD ["python3", "/execute/app.py"]