use common image for dev

This commit is contained in:
balzack 2024-05-06 19:30:32 -07:00
parent 20d05ca258
commit 73e70b19d6
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ RUN echo 'export PATH=$PATH:/usr/local/go/bin' >> /root/.bashrc
RUN echo "set expandtab\nset tabstop=2\nset softtabstop=2\nset shiftwidth=2\nset encoding=utf-8\nset fileencoding=utf-8\n" > /root/.vimrc
RUN echo "bind 'set mark-symlinked-directories on'" >> /root/.bashrc
ADD dev_setup.sh /app
ADD entrypoint.sh /app
FROM scratch

View File

@ -13,6 +13,7 @@ if [[ -v ADMIN ]]; then
fi
if [ "$DEV" == "1" ]; then
/app/dev_setup.sh || true
while true; do
sleep 1;
done