brunneis's picture
Fix permissions
87d5707 unverified
raw
history blame
789 Bytes
FROM node:22-bookworm-slim
RUN apt-get update && \
apt-get install -y build-essential python3 python3-pip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER node
ENV HOME=/home/node \
PATH=/home/node/.local/bin:$PATH
COPY --chown=node . $HOME/app
WORKDIR $HOME/app
COPY --chown=node requirements.txt .
RUN pip install --no-cache-dir --break-system-packages -U pip && \
pip install --no-cache-dir --break-system-packages -r requirements.txt
COPY --chown=node hardhat hardhat
WORKDIR $HOME/app/hardhat
RUN npm install && \
npx hardhat compile && \
rm -rf contracts test cache
WORKDIR $HOME/app
COPY --chown=node api .
COPY --chown=node init_tasks.py ./
ENV HF_DATASET=braindao/solbench-humaneval-for-solidity-v2
ENTRYPOINT ["./scripts/start-api.sh"]