forked from Sunbird-RC/sunbird-rc-core
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
af2000b
commit 6ae6a53
Showing
2 changed files
with
12 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM node:16 as dependencies | ||
WORKDIR /app | ||
COPY . ./ | ||
RUN npm install | ||
EXPOSE 3332 | ||
CMD ["npm", "test"] |
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,6 +1,11 @@ | ||
IMAGE:=dockerhub/sunbird-rc-identity-service | ||
|
||
.PHONY: docker publish test | ||
|
||
docker: | ||
@docker build -t $(IMAGE) . | ||
publish: | ||
@docker push $(IMAGE) | ||
@docker push $(IMAGE) | ||
test: | ||
@docker build -f Dockerfile.test -t $(IMAGE)-test . | ||
@docker run $(IMAGE)-test |