This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 943
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor docker-compose and Dockerfile
- Loading branch information
1 parent
d2150bd
commit b540d37
Showing
4 changed files
with
41 additions
and
15 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,14 +1,16 @@ | ||
FROM node:14.19.0 as build | ||
ARG NPM_TOKEN | ||
ARG BUILD_CONTEXT | ||
|
||
WORKDIR /apps | ||
COPY package.json . | ||
|
||
COPY yarn.lock . | ||
COPY ./package.json . | ||
COPY $BUILD_CONTEXT/package.json . | ||
RUN echo "//npm.pkg.github.com/:_authToken=${NPM_TOKEN}" > ~/.npmrc && \ | ||
echo "@mgilangjanuar:registry=https://npm.pkg.github.com/" >> ~/.npmrc && \ | ||
yarn install && \ | ||
rm -f ~/.npmrc && \ | ||
npm i react-scripts -g && \ | ||
npm i typescript -g | ||
COPY . . | ||
RUN yarn workspaces run build | ||
echo "@mgilangjanuar:registry=https://npm.pkg.github.com/" >> ~/.npmrc | ||
RUN npm i react-scripts -g --silent && \ | ||
npm i typescript | ||
RUN yarn install | ||
RUN rm -f ~/.npmrc | ||
COPY $BUILD_CONTEXT . | ||
RUN yarn run build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
REACT_APP_API_URL=http://localhost:4000 | ||
REACT_APP_API_URL=http://localhost:4000 | ||
REACT_APP_TG_API_ID= | ||
REACT_APP_TG_API_HASH= |