Commit 8e694bd0 authored by Guillaume Charifi's avatar Guillaume Charifi

Add Dockerfile & setup CI.

parent 6aab8866
Pipeline #581 passed with stage
in 7 minutes and 11 seconds
# 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 "nodejscontainer:latest"
- docker build -t "nodejscontainer:latest" .
- docker rmi -f "$CI_REGISTRY_IMAGE:latest"
- docker tag "nodejscontainer:latest" "$CI_REGISTRY_IMAGE:latest"
- docker push "$CI_REGISTRY_IMAGE:latest"
- docker rmi -f "nodejscontainer:latest"
FROM debian:unstable-slim
MAINTAINER Guillaume Charifi <guillaume.charifi@sfr.fr>
RUN apt-get -qq update && \
apt-get upgrade -qqyy && \
apt-get install -qqyy \
nodejs \
npm \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /build
CMD /bin/bash
NodeJS Container
================
NodeJS & npm
\ No newline at end of file
NodeJS & npm
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