Created
March 29, 2019 04:00
-
-
Save marc-barry/82c1b3ad2cb58cf5414ef7987b51cb7a to your computer and use it in GitHub Desktop.
Minimal https://github.com/Shopify/shipit-engine Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.6.2-alpine3.9 | |
ENV RAILS_VERSION 5.2.3 | |
ENV SHIPIT_VERSION 0.27.1 | |
# throw errors if Gemfile has been modified since Gemfile.lock | |
RUN bundle config --global frozen 1 | |
RUN apk add --no-cache --virtual .build-deps \ | |
build-base \ | |
curl \ | |
git \ | |
&& gem install rails -v "${RAILS_VERSION}" \ | |
&& curl -fSL https://github.com/Shopify/shipit-engine/archive/v"${SHIPIT_VERSION}".tar.gz -o shipit.tar.gz \ | |
&& mkdir -p /usr/src \ | |
&& tar -zxC /usr/src -f shipit.tar.gz \ | |
&& rails new shipit --skip-action-cable --skip-turbolinks --skip-action-mailer --skip-active-storage -m /usr/src/shipit-engine-"${SHIPIT_VERSION}"/template.rb \ | |
&& apk del .build-deps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME := docker-shipit-engine | |
DOCKER_ORG := digitalocean | |
#GITCOMMIT := $(shell git rev-parse --short=10 HEAD 2>/dev/null) | |
GITCOMMIT := XYZ | |
BASE_IMAGE_URL := $(DOCKER_ORG)/$(NAME) | |
IMAGE_URL := $(BASE_IMAGE_URL):$(GITCOMMIT) | |
image-create: | |
docker build --pull -t ${IMAGE_URL} . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment