mirror of
https://github.com/askh/pypimirror.git
synced 2026-03-04 18:29:47 +00:00
Add the entry point src/devpisrv.sh
This commit is contained in:
@@ -8,5 +8,6 @@ USER devpisrv:devpisrv
|
||||
RUN pip3 install -U pip
|
||||
ENV PATH="/home/devpisrv/.local/bin:${PATH}"
|
||||
RUN pip install -U -r /tmp/requirements.txt
|
||||
RUN devpi-init --serverdir /var/local/devpisrv
|
||||
CMD devpi-server --serverdir /var/local/devpisrv --host 0.0.0.0
|
||||
COPY src/devpisrv.sh /usr/local/bin/
|
||||
ENTRYPOINT ["devpisrv.sh"]
|
||||
|
||||
|
||||
11
src/devpisrv.sh
Executable file
11
src/devpisrv.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
SERVER_DIR=/var/local/devpisrv
|
||||
|
||||
if [[ ! -f "$SERVER_DIR/.nodeinfo" ]]
|
||||
then
|
||||
devpi-init --serverdir "$SERVER_DIR"
|
||||
fi
|
||||
|
||||
devpi-server --serverdir "$SERVER_DIR" --host 0.0.0.0
|
||||
|
||||
Reference in New Issue
Block a user