Skip to content

Commit

Permalink
Ensure production container build (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweak authored Mar 29, 2021
1 parent f098bc1 commit ee22730
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile-prod
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ FROM alpine:latest AS souin

COPY --from=builder /app/cmd/souin .
COPY --from=builder /app/src/github.com/darkweak/souin/configuration .
COPY --from=builder /ssl/ .
RUN mkdir -p /ssl
COPY --from=builder /app/src/github.com/darkweak/souin/default .
RUN mkdir -p configuration
RUN mv *.yml configuration/
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ build-dev: env-dev ## Build containers with dev env vars
$(DC_BUILD) souin
$(MAKE) up

health-check-prod: build-app ## Production container health check
$(DC_EXEC) souin ls

coverage: ## Show code coverage
$(DC_EXEC) souin go test ./... -coverprofile cover.out
$(DC_EXEC) souin go tool cover -func cover.out
Expand Down Expand Up @@ -54,4 +57,4 @@ tests: ## Run tests
up: ## Up containers
$(DC) up -d --remove-orphans

validate: lint tests ## Run lint and tests
validate: lint tests down health-check-prod ## Run lint, tests and ensure prod can build

0 comments on commit ee22730

Please sign in to comment.