Improve README, add foundry to docker, add handler to build targets

This commit is contained in:
Thales Lima
2024-08-02 04:03:09 +02:00
committed by tvinagre
parent 11619bf8be
commit 8ea02613a2
8 changed files with 135 additions and 35 deletions

View File

@@ -4,6 +4,14 @@ FROM --platform=linux/amd64 continuumio/miniconda3:24.4.0-0
# Set the working directory in the container to /app
WORKDIR /app
# Install Foundry
RUN apt-get update && apt-get install -y curl
RUN curl -L https://foundry.paradigm.xyz | bash
RUN /bin/bash -c "source $HOME/.bashrc && $HOME/.foundry/bin/foundryup"
#
# Add Foundry to PATH
ENV PATH /root/.foundry/bin:$PATH
# Add current directory code to /app in container
ADD . /app/testing
@@ -22,7 +30,7 @@ RUN apt-get update \
&& apt-get clean
ARG PIP_INDEX_URL
RUN /bin/bash -c "source activate myenv && cd testing && pip install --no-cache-dir -r src/requirements.txt && cd -"
RUN /bin/bash -c "source activate myenv && cd testing && pip install --no-cache-dir -r requirements.txt && cd -"
# Make port 80 available to the world outside this container
EXPOSE 80