Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
FROM node:16 | ||
|
||
FROM ubuntu:20.04 as base | ||
RUN apt-get update && apt-get -y install bash curl | ||
RUN curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh | ||
RUN bash /tmp/nodesource_setup.sh | ||
RUN apt install nodejs | ||
|
||
|
||
|
||
FROM base as builder | ||
RUN apt-get update && apt-get -y install wget | ||
COPY package*.json /usr/src/app/ | ||
WORKDIR /usr/src/app | ||
RUN npm install | ||
WORKDIR /usr/src/app/ | ||
ENV NODE_ENV=production | ||
RUN npm ci | ||
|
||
|
||
FROM base as runner | ||
ENV NODE_ENV=production | ||
COPY . /usr/src/app | ||
WORKDIR /usr/src/app/ | ||
COPY --from=builder /usr/src/app/node_modules/ /usr/src/app/node_modules/ | ||
ENV DEPLOY_SUBGRAPH=true | ||
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters