aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2019-01-09 21:40:28 +0000
committerCody Hiar <codyfh@gmail.com>2019-01-09 21:40:28 +0000
commit3975747586411d263243724e7e82ee8056a3ec45 (patch)
tree0d87544b4ef16756541440f9b4b49482f160b85f
parentce780c29e7f9272022ac76f8df5fdf0540234d48 (diff)
Docker build updates
-rw-r--r--{{cookiecutter.project_name}}/docker-compose.yml4
-rw-r--r--{{cookiecutter.project_name}}/docker/Dockerfile2
2 files changed, 5 insertions, 1 deletions
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