mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Now, we have `docker/scripts/install-deps.sh`, a script used by both Docker and .gitlab-ci.yml. We can now focus on changing deps in this script along as well as documentation going forward. Signed-off-by: Kevin Morris <kevr@0cost.org>
30 lines
687 B
Docker
30 lines
687 B
Docker
FROM archlinux:base-devel
|
|
|
|
ENV PYTHONPATH=/aurweb
|
|
ENV AUR_CONFIG=conf/config
|
|
|
|
# Copy our single bootstrap script.
|
|
COPY docker/scripts/install-deps.sh /install-deps.sh
|
|
RUN /install-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
|
|
|
|
# Copy the rest of docker.
|
|
COPY ./docker /docker
|
|
COPY ./docker/scripts/*.sh /usr/local/bin/
|
|
|
|
# Copy from host to container.
|
|
COPY . /aurweb
|
|
|
|
# Working directory is aurweb root @ /aurweb.
|
|
WORKDIR /aurweb
|
|
|
|
# Install translations.
|
|
RUN make -C po all install
|
|
|
|
# Install package and scripts.
|
|
RUN python setup.py install --install-scripts=/usr/local/bin
|