-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/NexaAI/nexaai-sdk-cpp into …
…david/bugfix
- Loading branch information
Showing
4 changed files
with
49 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Use a base image that includes Miniconda | ||
FROM continuumio/miniconda3 | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
RUN apt-get update && apt-get install -y cmake g++ | ||
# Copy the environment.yml file into the container at /app | ||
COPY pyproject.toml CMakeLists.txt requirements.txt README.md ./ | ||
COPY dependency ./dependency | ||
|
||
# Install the conda environment | ||
RUN conda create -n nexa python=3.10 -y | ||
RUN /bin/bash -c "source activate nexa && pip install -r requirements.txt && pip install -e ." | ||
|
||
# Activate the environment | ||
RUN echo "source activate nexa" > ~/.bashrc | ||
ENV PATH /opt/conda/envs/nexa/bin:$PATH | ||
|
||
# Copy your application code to the container | ||
COPY . . | ||
|
||
# Set the command to activate the environment and start your application | ||
CMD ["bash", "-c", "source activate nexa && python -m nexa.cli.entry gen-text gemma"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters