Skip to content

Commit

Permalink
add config/ build steps to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-funk committed Jul 27, 2023
1 parent a2db25b commit cbaf682
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 @@ -29,7 +29,8 @@ RUN git config --global url."https://github.com/".insteadOf ssh://git@github.com
git config --global url."https://".insteadOf ssh://

# Initialize sub packages
RUN cd common && npm ci && \
RUN cd config && npm ci && \
cd ../common && npm ci && \
cd ../client && npm ci && \
cd ../server && npm ci && \
cd ..
Expand All @@ -39,10 +40,14 @@ RUN cd server && \
npm run generate && \
cd ..

# Build config, prune static assets
RUN cd config && \
npm run build && \
cd ..

# Build common, prune static assets
RUN cd common && \
npm run build && \
npm prune --production && \
cd ..

# Build client, prune static assets
Expand Down

0 comments on commit cbaf682

Please sign in to comment.