forked from djeck1432/spotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 loc) · 858 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
31
32
FROM python:3.12-slim
# Environment settings
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1
# Create app directory
RUN mkdir /app
WORKDIR /app
# Add system-level dependencies (including gcc and npm)
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libpq-dev gcc g++ make libffi-dev build-essential \
curl nodejs npm \
&& rm -rf /var/lib/apt/lists/*
# Copy only requirements.txt to leverage Docker cache
COPY ./requirements.txt /app/requirements.txt
# Install Python dependencies from requirements.txt and cache the layer
RUN pip install --no-cache-dir -r /app/requirements.txt
# Copy the rest of the application code
ADD . /app
# Install StarknetKit via npm with legacy-peer-deps flag
RUN npm install @argent/get-starknet --legacy-peer-deps --save
EXPOSE 8000
ENTRYPOINT ["bash", "/app/entrypoint.sh"]