mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
As root, seems that $HOME doesn't work like I expected it to. Tested this before, but I apparently had some cache still holding on. Fixing the issue in this commit here. Signed-off-by: Kevin Morris <kevr@0cost.org>
31 lines
702 B
Docker
31 lines
702 B
Docker
FROM archlinux:base-devel
|
|
|
|
ENV PATH="/root/.poetry/bin:${PATH}"
|
|
ENV PYTHONPATH=/aurweb
|
|
ENV AUR_CONFIG=conf/config
|
|
|
|
# Install system-wide dependencies.
|
|
COPY ./docker/scripts/install-deps.sh /install-deps.sh
|
|
RUN /install-deps.sh
|
|
|
|
# Copy Docker scripts
|
|
COPY ./docker /docker
|
|
COPY ./docker/scripts/*.sh /usr/local/bin/
|
|
|
|
# Copy over all aurweb files.
|
|
COPY . /aurweb
|
|
|
|
# Working directory is aurweb root @ /aurweb.
|
|
WORKDIR /aurweb
|
|
|
|
# Install Python dependencies.
|
|
RUN /docker/scripts/install-python-deps.sh
|
|
|
|
# Add our aur user.
|
|
RUN useradd -U -d /aurweb -c 'AUR User' aur
|
|
|
|
# Setup some default system stuff.
|
|
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
|
|
|
# Install translations.
|
|
RUN make -C po all install
|