Skip to content

Commit

Permalink
Backend: Upgrade NodeJS to v14.15.3 and fix Docker multistaged build
Browse files Browse the repository at this point in the history
  • Loading branch information
winwiz1 committed Dec 19, 2020
1 parent a7b97b1 commit 0d06c48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ git:
depth: 3
language: node_js
node_js:
- "14.15.0"
- "14.15.3"
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# Used by Docker and Cloud Run

FROM node:14.15.0-slim as build
RUN apt-get update -qq && apt-get upgrade -qq \
&& apt-get clean autoclean && apt-get autoremove -y \
&& rm -rf \
/var/lib/cache \
/var/lib/log
FROM node:14.15.3-slim as build

WORKDIR /crisp-react/server
COPY ./server/ .
Expand All @@ -14,7 +9,14 @@ WORKDIR /crisp-react/client
COPY ./client/ .
RUN yarn && yarn build:prod

FROM build as prod
FROM node:14.15.3-slim as prod

RUN apt-get update -qq && apt-get upgrade -qq \
&& apt-get clean autoclean && apt-get autoremove -y \
&& rm -rf \
/var/lib/cache \
/var/lib/log

WORKDIR /crisp-react/server
COPY ./server/ .
COPY --from=build /crisp-react/client/config/ /crisp-react/server/config/
Expand Down

0 comments on commit 0d06c48

Please sign in to comment.