add proper poetry install into p3.11 virtualenv

This commit is contained in:
mpabi 2024-06-20 09:18:09 +00:00
parent fa8a259907
commit b41022dbff
2 changed files with 5 additions and 2 deletions

View File

@ -67,7 +67,10 @@ COPY ./_confs/* ./
# Set the working directory for installing dependencies # Set the working directory for installing dependencies
WORKDIR /home/user/fapi WORKDIR /home/user/fapi
RUN bash -i -c "source ~/.bashrc && poetry config virtualenvs.create false && poetry install" # Install project dependencies with Poetry in the p3.11 environment
RUN bash -i -c "source ~/.bashrc && pyenv activate p3.11 && poetry install"
#RUN bash -i -c "source ~/.bashrc && poetry config virtualenvs.create false && poetry install"
# Copy the .vimrc file # Copy the .vimrc file
#COPY --chown=user:user .vimrc /home/user/.vimrc #COPY --chown=user:user .vimrc /home/user/.vimrc

View File

@ -9,7 +9,7 @@ engine = create_engine(
) )
""" """
SQLALCHEMY_DATABASE_URL = "mysql+mysqlconnector://root:secret@qstack.pl:3306/mpabi" # Przykład dla MySQL SQLALCHEMY_DATABASE_URL = "mysql+mysqlconnector://root:secret@172.18.0.2:3306/test" # Przykład dla MySQL
engine = create_engine( engine = create_engine(
SQLALCHEMY_DATABASE_URL, SQLALCHEMY_DATABASE_URL,
) )