Commit 9e98738c authored by Guillaume Charifi's avatar Guillaume Charifi

Add CI & Dockerfile.

parent 37b472f9
Pipeline #665 failed
# This file is a template, and might need editing before it works on your project.
# Official docker image.
image: docker:latest
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
build:
stage: build
script:
- docker rmi -f "debiancurl:latest"
- docker build --no-cache -t "debiancurl:latest" .
- docker rmi -f "$CI_REGISTRY_IMAGE:latest"
- docker tag "debiancurl:latest" "$CI_REGISTRY_IMAGE:latest"
- docker push "$CI_REGISTRY_IMAGE:latest"
- docker rmi -f "debiancurl:latest"
FROM debian:unstable-slim
LABEL maintainer="Guillaume Charifi <guillaume.charifi@sfr.fr>"
RUN \
apt-get -qq update && \
apt-get upgrade -qqyy && \
apt-get --no-install-recommends install -qqyy \
\
curl \
ca-certificates \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /build
CMD /bin/bash
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