From 673002b6853344854bc4fe3acdbac09490a792de Mon Sep 17 00:00:00 2001 From: AkshayJagadish-ne <66637665+AkshayJagadish-ne@users.noreply.github.com> Date: Mon, 12 Oct 2020 23:05:28 -0400 Subject: [PATCH] Correction moved copy statement to the production environment --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 40e06ad..ae0a3be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ ENV PATH /app/node_modules/.bin:$PATH # A wildcard is used to ensure both package.json AND package-lock.json are copied # where available (npm@5+) COPY package*.json ./ -COPY app/commit.properties ./ + #RUN npm install # If you are building your code for production @@ -29,6 +29,7 @@ RUN apk add --no-cache jq COPY --from=build /app/dist /usr/share/nginx/html COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf COPY docker_entrypoint.sh generate_config_js.sh / +COPY app/commit.properties / RUN chmod +x docker_entrypoint.sh generate_config_js.sh EXPOSE 80