From efbde6558983906155583abb551c7f1560fe8c35 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 29 Aug 2020 12:33:22 -0500 Subject: [PATCH] =?UTF-8?q?build:=20=F0=9F=94=A8=F0=9F=9A=A7=20apply=20mis?= =?UTF-8?q?c=20build=20tweaks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.override.yml | 2 +- web/Dockerfile | 4 ++-- web/Dockerfile.dev | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docker-compose.override.yml b/docker-compose.override.yml index fd9ee2339..98d470d6d 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -14,7 +14,7 @@ services: build: dockerfile: Dockerfile.dev volumes: - - .:/app + - .:/app:ro - /app/node_modules environment: - CHOKIDAR_USEPOLLING=true diff --git a/web/Dockerfile b/web/Dockerfile index 41ad9ed4e..904a3e79e 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -9,7 +9,7 @@ FROM node:alpine as build RUN apk add --no-cache python make g++ # install -WORKDIR /usr/src/app/ +WORKDIR /app COPY package*.json ./ RUN npm ci --only=production @@ -19,4 +19,4 @@ RUN npm run build # final FROM base as final -COPY --from=build /usr/src/app/build /usr/share/nginx/html \ No newline at end of file +COPY --from=build /app/build /usr/share/nginx/html \ No newline at end of file diff --git a/web/Dockerfile.dev b/web/Dockerfile.dev index a6d488a17..dd499a4e5 100644 --- a/web/Dockerfile.dev +++ b/web/Dockerfile.dev @@ -3,8 +3,7 @@ FROM node:alpine ENV PATH /app/node_modules/.bin:$PATH # install -RUN npm install react-scripts -g -WORKDIR /usr/src/app/ +WORKDIR /app COPY package*.json ./ RUN npm i