Docker: Fix installation, remove pip, simplify sshd

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-06-27 06:26:18 -07:00
parent 12911a101e
commit acc100eb52
2 changed files with 13 additions and 23 deletions

View file

@ -18,7 +18,7 @@ RUN pacman -Syu --noconfirm --noprogressbar \
python-pytest-asyncio python-coverage hypercorn python-bcrypt \
python-email-validator openssh python-lxml mariadb mariadb-libs \
python-isort flake8 cgit uwsgi uwsgi-plugin-cgi php php-fpm \
python-asgiref uvicorn python-pip python-wheel
python-asgiref uvicorn
RUN useradd -U -d /aurweb -c 'AUR User' aur
@ -28,8 +28,4 @@ WORKDIR /aurweb
COPY . .
RUN make -C po all install
RUN pip3 install -t /aurweb/app --upgrade -I .
# Set permissions on directories and binaries.
RUN bash -c 'find /aurweb/app -type d -exec chmod 755 {} \;'
RUN chmod 755 /aurweb/app/bin/*
RUN python3 setup.py install --install-scripts=/usr/local/bin