Correction

moved copy statement to the production environment
This commit is contained in:
AkshayJagadish-ne
2020-10-12 23:05:28 -04:00
committed by GitHub
parent c014ba5e40
commit 673002b685

View File

@@ -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