forked from JackHamer09/zksync-plus
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: dockerize app with hyperchains configurable at runtime (#189)
- Loading branch information
1 parent
8dc0b0c
commit 485d879
Showing
5 changed files
with
57 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM node:18.17.1-alpine AS base-stage | ||
|
||
WORKDIR /usr/src/app | ||
COPY package*.json ./ | ||
|
||
FROM base-stage AS build-stage | ||
RUN apk add --update python3 make g++ && rm -rf /var/cache/apk/* | ||
RUN npm cache clean --force && npm install | ||
COPY . . | ||
RUN npm run generate | ||
|
||
FROM base-stage AS production-stage | ||
COPY --from=build-stage /usr/src/app/.output/public ./dist | ||
RUN npm i -g http-server | ||
|
||
ARG PORT=3000 | ||
ENV PORT=${PORT} | ||
|
||
WORKDIR /usr/src/app/dist | ||
|
||
CMD http-server -p $PORT -c-1 --proxy="http://127.0.0.1:$PORT/index.html?" |
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
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
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