changed volume mount point

This commit is contained in:
mpabi 2024-06-23 15:54:46 +00:00
parent 31c72ce62f
commit c7933373c4
2 changed files with 9 additions and 2 deletions

View File

@ -64,12 +64,19 @@ RUN bash -i -c "source ~/.bashrc && pyenv activate p3.11 && pip install \
COPY --chown=user:user . /home/user/fapi COPY --chown=user:user . /home/user/fapi
COPY ./_confs/* ./ COPY ./_confs/* ./
# Create and copy the start script
RUN echo '#!/bin/bash\n\
tmux new-session -d -s mysession\n\
tail -f /dev/null' > ./start.sh
RUN chmod +x ./start.sh
# Set the working directory for installing dependencies # Set the working directory for installing dependencies
WORKDIR /home/user/fapi WORKDIR /home/user/fapi/
# Install project dependencies with Poetry in the p3.11 environment # 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 && pyenv activate p3.11 && poetry install"
WORKDIR /home/user/
#RUN bash -i -c "source ~/.bashrc && poetry config virtualenvs.create false && poetry install" #RUN bash -i -c "source ~/.bashrc && poetry config virtualenvs.create false && poetry install"
# Copy the .vimrc file # Copy the .vimrc file

View File

@ -44,7 +44,7 @@ services:
- "9999:9999" - "9999:9999"
volumes: volumes:
- ../../inf04-24_01:/home/user/fapi - ../../inf04-24_01:/home/user/fapi
command: ["tail", "-f", "/dev/null"] command: ["/home/user/start.sh"]
networks: networks:
- my-network - my-network