From 05039c3eb0f0a80a6e82f7831820561390988ed0 Mon Sep 17 00:00:00 2001 From: Guy Bianco IV Date: Wed, 23 Jun 2021 17:41:38 -0400 Subject: [PATCH] fix dockerfiles --- todo-backend/Dockerfile | 1 - todo-frontend/Dockerfile | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/todo-backend/Dockerfile b/todo-backend/Dockerfile index 025dde8..ae200e5 100644 --- a/todo-backend/Dockerfile +++ b/todo-backend/Dockerfile @@ -17,7 +17,6 @@ RUN cd /opt/app-root/src && \ ENV DATABASE_SVC=192.168.0.10 ENV DATABASE_PORT=3306 ENV DATABASE_PASSWORD=secret-pass -ENV DATABASE_INIT=true ENV PORT=3000 EXPOSE 3000 diff --git a/todo-frontend/Dockerfile b/todo-frontend/Dockerfile index 9935c9e..b453810 100644 --- a/todo-frontend/Dockerfile +++ b/todo-frontend/Dockerfile @@ -10,9 +10,9 @@ USER 0 COPY . /tmp/todo-frontend -RUN cd /tmp/todo-frontend && \ - npm install && \ - npm run build +RUN cd /tmp/todo-frontend +RUN npm install +RUN npm run build # https://github.com/sclorg/nginx-container FROM registry.access.redhat.com/ubi8/nginx-118