aboutsummaryrefslogtreecommitdiff
path: root/{{cookiecutter.project_name}}
diff options
context:
space:
mode:
Diffstat (limited to '{{cookiecutter.project_name}}')
-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