From df0c09f5b3cf0654bdffd907b0ccbd51ca4db4da Mon Sep 17 00:00:00 2001 From: Curtis Delicata Date: Wed, 27 Jul 2022 13:52:28 +0100 Subject: [PATCH] Update Docker. --- .docker/prod/app/Dockerfile | 7 +++++++ .env.example | 5 +++++ docker-compose.yml | 3 +++ 3 files changed, 15 insertions(+) diff --git a/.docker/prod/app/Dockerfile b/.docker/prod/app/Dockerfile index 0d161853..666b679a 100644 --- a/.docker/prod/app/Dockerfile +++ b/.docker/prod/app/Dockerfile @@ -1,3 +1,10 @@ +# Build arguments +ARG IMAGE_REGISTRY=familytree365 +ARG IMAGE_TAG=latest + +# Image +#FROM ${IMAGE_REGISTRY}/nuxt:${IMAGE_TAG} + # Image FROM node:16-alpine diff --git a/.env.example b/.env.example index 7f236066..8681ecad 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,8 @@ +COMPOSE_FILE=docker-compose.yml +BASE_IMAGE_DOCKERFILE=./.docker/prod/base/Dockerfile +IMAGE_REGISTRY=familytree365 +IMAGE_TAG=latest + BASE_URL=https://api.familytree365.com ECHO_PORT= HOSTNAME=https://www.familytree365.com diff --git a/docker-compose.yml b/docker-compose.yml index 2f4ad683..d2713a74 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,9 @@ services: build: context: ./ dockerfile: ./.docker/prod/app/Dockerfile + args: + IMAGE_REGISTRY: ${IMAGE_REGISTRY} + IMAGE_TAG: ${IMAGE_TAG} hostname: client networks: - client