forked from nmarw25/GROW-Cryptography-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (21 loc) · 748 Bytes
/
Dockerfile
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
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
libpq-dev gcc curl \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Navigate to the frontend component and build it
WORKDIR /app/secret_share_component/template/secret_share_component/frontend
RUN npm install -g pnpm \
&& pnpm install \
&& pnpm run build
# Return to the application root directory
WORKDIR /app
# Install the project in editable mode
RUN pip install -e .
EXPOSE 8501
CMD ["python", "src/Create_Analysis.py", "--server.port=8501", "--server.enableCORS=true"]