diff --git a/src/Dockerfile b/src/Dockerfile index f18ea68..cbc035b 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -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 diff --git a/src/docker-compose2.yaml b/src/docker-compose2.yaml index 6f273e0..ea6a900 100644 --- a/src/docker-compose2.yaml +++ b/src/docker-compose2.yaml @@ -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