Skip to content

Commit

Permalink
use Dockerfile.in rather than Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Mar 14, 2022
1 parent 0321b49 commit 918d0df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 88 deletions.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ build:
stage: build
image: docker
script:
- docker build -t $CONTAINER_IMAGE -t $IMAGE_LATEST_TAG -t $IMAGE_SHA_TAG .
- apk add make m4
- make build
- docker image push --all-tags $CI_REGISTRY_IMAGE
83 changes: 0 additions & 83 deletions Dockerfile

This file was deleted.

12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SHELL=bash
MAIN=build
SHELL=sh
MAIN=build-dev

BUILD=build

Expand All @@ -14,11 +14,15 @@ wheels:

.PHONY: build
build: Dockerfile
docker-compose build
docker build -t ${CONTAINER_IMAGE} -t ${IMAGE_LATEST_TAG} -t ${IMAGE_SHA_TAG} .

.PHONY: build-dev
build-dev: Dockerfile
docker-compose build-dev

Dockerfile:
m4 Dockerfile.in > Dockerfile

.PHONY: run
run: build
run: build-dev
docker-compose up

0 comments on commit 918d0df

Please sign in to comment.