Move hugo download lower so more of the container can be cached during reruns
This commit is contained in:
parent
25ef616910
commit
bef14d0367
1 changed files with 3 additions and 3 deletions
|
@ -9,13 +9,13 @@ WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y ca-certificates
|
RUN apt-get update && apt-get install -y ca-certificates
|
||||||
|
|
||||||
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb /tmp/hugo.deb
|
|
||||||
RUN dpkg -i /tmp/hugo.deb
|
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
RUN npm ci --production
|
RUN npm ci --production
|
||||||
|
|
||||||
|
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb /tmp/hugo.deb
|
||||||
|
RUN dpkg -i /tmp/hugo.deb
|
||||||
|
|
||||||
RUN ./scripts/release.sh
|
RUN ./scripts/release.sh
|
||||||
|
|
||||||
# Production run
|
# Production run
|
||||||
|
|
Loading…
Reference in a new issue