mirror of
https://github.com/craigerl/aprsd.git
synced 2025-08-03 14:02:26 -04:00
Hack Dockerfile for admin fixes?
This commit is contained in:
parent
8f1733e493
commit
f07ef71ce0
@ -27,6 +27,7 @@ RUN set -ex \
|
|||||||
# Create a non-root user
|
# Create a non-root user
|
||||||
&& addgroup --system --gid 1001 appgroup \
|
&& addgroup --system --gid 1001 appgroup \
|
||||||
&& useradd --uid 1001 --gid 1001 -s /usr/bin/bash -m -d /app appuser \
|
&& useradd --uid 1001 --gid 1001 -s /usr/bin/bash -m -d /app appuser \
|
||||||
|
&& usermod -aG sudo appuser \
|
||||||
# Upgrade the package index and install security upgrades
|
# Upgrade the package index and install security upgrades
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get upgrade -y \
|
&& apt-get upgrade -y \
|
||||||
@ -51,7 +52,7 @@ RUN if [ "$INSTALL_TYPE" = "pypi" ]; then \
|
|||||||
pip3 install aprsd==$APRSD_PIP_VERSION; \
|
pip3 install aprsd==$APRSD_PIP_VERSION; \
|
||||||
elif [ "$INSTALL_TYPE" = "github" ]; then \
|
elif [ "$INSTALL_TYPE" = "github" ]; then \
|
||||||
git clone -b $APRSD_BRANCH https://github.com/craigerl/aprsd; \
|
git clone -b $APRSD_BRANCH https://github.com/craigerl/aprsd; \
|
||||||
cd /app/aprsd && pip install -e .; \
|
cd /app/aprsd && pip install .; \
|
||||||
ls -al /app/.local/lib/python3.11/site-packages/aprsd*; \
|
ls -al /app/.local/lib/python3.11/site-packages/aprsd*; \
|
||||||
fi
|
fi
|
||||||
RUN pip install gevent uwsgi
|
RUN pip install gevent uwsgi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user