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 --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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue