changed volume mount point
This commit is contained in:
parent
31c72ce62f
commit
c7933373c4
|
@ -64,12 +64,19 @@ RUN bash -i -c "source ~/.bashrc && pyenv activate p3.11 && pip install \
|
|||
COPY --chown=user:user . /home/user/fapi
|
||||
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
|
||||
WORKDIR /home/user/fapi
|
||||
WORKDIR /home/user/fapi/
|
||||
|
||||
# Install project dependencies with Poetry in the p3.11 environment
|
||||
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"
|
||||
|
||||
# Copy the .vimrc file
|
||||
|
|
|
@ -44,7 +44,7 @@ services:
|
|||
- "9999:9999"
|
||||
volumes:
|
||||
- ../../inf04-24_01:/home/user/fapi
|
||||
command: ["tail", "-f", "/dev/null"]
|
||||
command: ["/home/user/start.sh"]
|
||||
networks:
|
||||
- my-network
|
||||
|
||||
|
|
Loading…
Reference in New Issue