From 3975747586411d263243724e7e82ee8056a3ec45 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 9 Jan 2019 21:40:28 +0000 Subject: Docker build updates --- {{cookiecutter.project_name}}/docker-compose.yml | 4 +++- {{cookiecutter.project_name}}/docker/Dockerfile | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.project_name}}/docker-compose.yml b/{{cookiecutter.project_name}}/docker-compose.yml index 18e410e..a318c45 100644 --- a/{{cookiecutter.project_name}}/docker-compose.yml +++ b/{{cookiecutter.project_name}}/docker-compose.yml @@ -1,7 +1,9 @@ version: '3' services: backend: - build: ./docker/ + build: + context: ./ + dockerfile: ./docker/Dockerfile network_mode: "bridge" container_name: {{cookiecutter.project_name}} image: {{cookiecutter.docker_owner}}/{{cookiecutter.project_name}} diff --git a/{{cookiecutter.project_name}}/docker/Dockerfile b/{{cookiecutter.project_name}}/docker/Dockerfile index 81d4aab..b7750dc 100644 --- a/{{cookiecutter.project_name}}/docker/Dockerfile +++ b/{{cookiecutter.project_name}}/docker/Dockerfile @@ -18,3 +18,5 @@ ENV LC_ALL en_US.UTF-8 # The code is stored here WORKDIR /usr/src/app +# Copy code into image for distribution +COPY . /usr/src/app -- cgit v1.2.3