Commit 1b9868dd authored by Guillaume Charifi's avatar Guillaume Charifi

Fully disable Docker cache.

parent 65575642
Pipeline #818 passed with stage
in 16 minutes and 12 seconds
......@@ -12,7 +12,7 @@ build:
stage: build
script:
- docker rmi -f "nodejscontainer:latest"
- docker build -t "nodejscontainer:latest" --build-arg CACHEBUST="$(date +%s)" .
- docker build --no-cache -t "nodejscontainer:latest" .
- docker rmi -f "$CI_REGISTRY_IMAGE:latest"
- docker tag "nodejscontainer:latest" "$CI_REGISTRY_IMAGE:latest"
- docker push "$CI_REGISTRY_IMAGE:latest"
......
FROM debian:unstable-slim
MAINTAINER Guillaume Charifi <guillaume.charifi@sfr.fr>
LABEL maintainer="Guillaume Charifi <guillaume.charifi@sfr.fr>"
ARG CACHEBUST=1
RUN apt-get -qq update && \
apt-get upgrade -qqyy && \
apt-get install -qqyy \
nodejs \
npm \
nodejs \
npm \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment