-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Noyes <[email protected]>
- Loading branch information
1 parent
6726fd3
commit 6958121
Showing
2 changed files
with
40 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM node:21 | ||
|
||
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app | ||
|
||
WORKDIR /home/node/app | ||
|
||
RUN npm install -g netlify-cli | ||
|
||
USER node | ||
|
||
COPY --chown=node:node package*.json ./ | ||
|
||
RUN npm install | ||
|
||
EXPOSE 8888 | ||
EXPOSE 3000 |
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,24 @@ | ||
.PHONY: docker-build | ||
docker-build: | ||
@docker build --tag test-cert-manager.io . | ||
|
||
.PHONY: docker-rm | ||
docker-rm: | ||
@docker rm -f test-cert-manager.io | ||
@docker rm -f verify-cert-manager.io | ||
|
||
.PHONY: docker-clean | ||
docker-clean: docker-rm | ||
@docker image rm test-cert-manager.io | ||
|
||
.PHONY: server | ||
server: docker-build | ||
@docker run -d --name test-cert-manager.io --rm -p 3000:3000 -p 8888:8888 -v ${PWD}:/home/node/app -v /home/node/app/node_modules test-cert-manager.io ./scripts/server | ||
|
||
.PHONY: verify | ||
verify: docker-build | ||
@docker run --rm --name verify-cert-manager.io -v ${PWD}:/home/node/app -v /home/node/app/node_modules test-cert-manager.io ./scripts/verify | ||
|
||
.PHONY: release | ||
release: docker-build | ||
@docker run --rm --name verify-cert-manager.io -v ${PWD}:/home/node/app -v /home/node/app/node_modules test-cert-manager.io ./scripts/build-release |