Added npm and py libs to Dockerfile

This commit is contained in:
mpabi 2024-06-20 07:26:25 +00:00
parent 488daed8b5
commit 5ec3df2ecf
1 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,8 @@ RUN apt-get update && apt-get install -y \
ifupdown udev make build-essential libssl-dev zlib1g-dev \ ifupdown udev make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget llvm libncurses5-dev \ libbz2-dev libreadline-dev libsqlite3-dev wget llvm libncurses5-dev \
libncursesw5-dev xz-utils libffi-dev liblzma-dev \ libncursesw5-dev xz-utils libffi-dev liblzma-dev \
sqlite3 default-libmysqlclient-dev pkg-config sqlite3 default-libmysqlclient-dev pkg-config \
npm
# Set password for root user (optional, for configuration) # Set password for root user (optional, for configuration)
RUN echo 'root:rootpass' | chpasswd RUN echo 'root:rootpass' | chpasswd
@ -54,7 +55,10 @@ RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="$HOME/.local/bin:$PATH" ENV PATH="$HOME/.local/bin:$PATH"
# Install SQLAlchemy and MySQL adapter in the pyenv environment # Install SQLAlchemy and MySQL adapter in the pyenv environment
RUN bash -i -c "source ~/.bashrc && pyenv activate p3.11 && pip install sqlalchemy mysqlclient" RUN bash -i -c "source ~/.bashrc && pyenv activate p3.11 && pip install \
sqlalchemy mysqlclient \
ipython numpy scipy matplotlib \
biopython"
# Copy the project into the image # Copy the project into the image
COPY --chown=user:user . /home/user/fapi COPY --chown=user:user . /home/user/fapi