Skip to content
Snippets Groups Projects
Commit cbc629d7 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Execute the postinstall script in dockerfile after the copy of the app

parent 3b782385
Branches
Tags
No related merge requests found
Pipeline #
...@@ -6,10 +6,12 @@ COPY ./package.json /app/package.json ...@@ -6,10 +6,12 @@ COPY ./package.json /app/package.json
WORKDIR /app WORKDIR /app
# Install npm dependencies # Install npm dependencies
RUN npm install RUN npm install
RUN npm run postinstall
# Copy the project # Copy the project
COPY . /app COPY . /app
# Launch postinstall script (to include crypto module)
RUN npm run postinstall
ARG env ARG env
# Building the Angular app /dist i18n # Building the Angular app /dist i18n
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment