diff --git a/Dockerfile-prod b/Dockerfile-prod index adcd75076..c301786e1 100644 --- a/Dockerfile-prod +++ b/Dockerfile-prod @@ -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/ diff --git a/Makefile b/Makefile index 9ba9dc774..542057b48 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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