Skip to content

Instantly share code, notes, and snippets.

@shemul
Created July 9, 2020 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shemul/2b04bfad88baea1404518720d5946c4c to your computer and use it in GitHub Desktop.
Save shemul/2b04bfad88baea1404518720d5946c4c to your computer and use it in GitHub Desktop.
simple docker for gitlab CI. includes ssh, git, docker, docker-compose and go
FROM ubuntu:18.04
MAINTAINER Kief H. Shemul <theshemul@gmail.com>
# Update and upgrade repo
RUN apt-get update -y -q && apt-get upgrade -y -q
# Install tools we might need
RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y -q curl build-essential ca-certificates git docker.io
RUN curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
RUN chmod +x /usr/local/bin/docker-compose
# Download Go 1.2.2 and install it to /usr/local/go
RUN curl -s https://storage.googleapis.com/golang/go1.14.linux-amd64.tar.gz| tar -v -C /usr/local -xz
# Let's people find our Go binaries
ENV PATH $PATH:/usr/local/go/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment