Docker: Reorder dependency installation for cache purposes

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-08-28 21:30:36 -07:00
parent eff7d478ab
commit a0be018547
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -7,14 +7,16 @@ ENV AUR_CONFIG=conf/config
COPY ./docker /docker COPY ./docker /docker
COPY ./docker/scripts/*.sh /usr/local/bin/ COPY ./docker/scripts/*.sh /usr/local/bin/
# Install system-wide dependencies.
RUN /docker/scripts/install-deps.sh
# Copy over all aurweb files. # Copy over all aurweb files.
COPY . /aurweb COPY . /aurweb
# Working directory is aurweb root @ /aurweb. # Working directory is aurweb root @ /aurweb.
WORKDIR /aurweb WORKDIR /aurweb
# Install dependencies # Install pip directories now that we have access to /aurweb.
RUN docker/scripts/install-deps.sh
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
# Add our aur user. # Add our aur user.