-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/setup docker file for react demo app (#32)
- Loading branch information
1 parent
1608565
commit 4f80fbc
Showing
6 changed files
with
44 additions
and
13 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,7 +1,7 @@ | ||
STATIC_DIR="./public" | ||
HYPERSWITCH_PUBLISHABLE_KEY="GET_PUBLISHABLE_KEY_FROM_DASHBOARD" | ||
HYPERSWITCH_SECRET_KEY="GET_SECRET_KEY_FROM_DASHBOARD" | ||
HYPERSWITCH_SERVER_URL="SELF_HOSTED_SERVER_URL" | ||
HYPERSWITCH_CLIENT_URL="SELF_HOSTED_CLIENT_URL" | ||
SELF_SERVER_URL="ENTER_YOUR_SERVER_APPLICATION_URL" | ||
SELF_CLIENT_URL="ENTER_YOUR_CLIENT_APPLICATION_URL" | ||
STATIC_DIR=./dist | ||
HYPERSWITCH_PUBLISHABLE_KEY= | ||
HYPERSWITCH_SECRET_KEY= | ||
HYPERSWITCH_SERVER_URL= | ||
HYPERSWITCH_CLIENT_URL= | ||
SELF_SERVER_URL= | ||
SELF_CLIENT_URL= |
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,9 @@ | ||
|
||
FROM node:18-alpine | ||
WORKDIR /usr/src/app | ||
COPY package*.json ./ | ||
COPY . . | ||
RUN yarn install | ||
RUN yarn build | ||
CMD [ "yarn" ,"start-server" ] | ||
|
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,19 @@ | ||
NS ?= juspaydotin | ||
VERSION ?= v1.0.0 | ||
IMAGE_NAME ?= hyperswitch-web | ||
BRANCH_NAME ?= $(shell git rev-parse --abbrev-ref HEAD) | ||
CONTAINER_NAME ?= hyperswitch-web | ||
CONTAINER_INSTANCE ?= default | ||
SOURCE_COMMIT := $(shell git rev-parse HEAD) | ||
RUN_TEST ?= false | ||
.PHONY: build push shell run start stop rm release | ||
build: Dockerfile | ||
$(info Building $(NS)/$(IMAGE_NAME):$(VERSION) / git-head: $(SOURCE_COMMIT)) | ||
$(info git branch is $(BRANCH_NAME)) | ||
# cp -R ~/.ssh . | ||
docker build --platform=linux/amd64 -t $(IMAGE_NAME):$(VERSION) -f Dockerfile . | ||
# aws-auth: | ||
# aws ecr get-login-password --region $(REGION) | docker login --username AWS --password-stdin $(ACCOUNT_ID).dkr.ecr.$(REGION).amazonaws.com | ||
push: | ||
docker tag $(IMAGE_NAME):$(VERSION) $(NS)/$(IMAGE_NAME):$(VERSION) | ||
docker push $(NS)/$(IMAGE_NAME):$(VERSION) |
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