Skip to content

Commit

Permalink
separate install and build step
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisibrahimd committed Aug 20, 2022
1 parent b874a83 commit 0e4fe11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ RUN BIN="/usr/local/bin" && \
"https://github.com/bufbuild/buf/releases/download/v${VERSION}/${BINARY_NAME}-$(uname -s)-$(uname -m)" \
-o "${BIN}/${BINARY_NAME}" && \
chmod +x "${BIN}/${BINARY_NAME}"
# install node modules and build assets
RUN npm install && npm run build
# Only install production packages
RUN npm install
# Build app
RUN npm run build


# nginx state for serving content
Expand Down

0 comments on commit 0e4fe11

Please sign in to comment.