Skip to content

Commit

Permalink
Tweak in build process (easier api iteration)
Browse files Browse the repository at this point in the history
  • Loading branch information
PicoCreator committed Jan 13, 2020
1 parent 9fea742 commit 8bd6b30
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ RUN apk add --no-cache make gcc g++ python
# Build the API
# with reseted node_modules
FROM codebuilder AS apibuilder
# copy and reset the code
# copy and download dependencies
COPY api/package.json /application/api-mods/package.json
RUN cd /application/api-mods/ && npm install
# copy source code
COPY api /application/api/
RUN rm -rf /application/api/node_modules
RUN cd /application/api && ls && npm install
# merge in dependnecies
RUN cp -r /application/api-mods/node_modules /application/api/node_modules
RUN ls /application/api/

# Build the UI
# with reseted node_modules
Expand Down

0 comments on commit 8bd6b30

Please sign in to comment.