Skip to content

Commit

Permalink
chore: up deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-KumarH committed Feb 12, 2024
1 parent b66c0ef commit 352ce29
Show file tree
Hide file tree
Showing 5 changed files with 450 additions and 2,758 deletions.
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Contributing Guidelines

## Commit Messages

This repository uses [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) and [commitlint](https://commitlint.js.org)
to standardize the commit messages.

## Development Flow

This repository follows a gitflow-style development.

The `main`/`master` branch is locked, and only allows pull requests.
Any change in the `main`/`master` branch gets automatically released via [semantic-release](https://github.com/semantic-release/semantic-release).

The `next` branch gets merged into `main`/`master` on an unscheduled basis.

Any change to the repository requires a new branch from the `next` branch, which then gets merged back into it with a pull request.

The pull request title must follow the same rules as commit messages and it gets linted.

The following diagram visualizes the development flow:

![development flow](./.github/development-flow.png)
19 changes: 11 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### Base
FROM node:20.8.0-alpine3.18 as base
### Build
FROM node:20.8.0-alpine3.18 as build
ENV NO_UPDATE_NOTIFIER=true

RUN apk add --no-cache git
Expand All @@ -12,10 +12,6 @@ WORKDIR $APP_HOME
COPY package.json package.json
COPY package-lock.json package-lock.json


### Build
FROM base as build

RUN npm ci

COPY --chown=node:node . .
Expand All @@ -24,9 +20,16 @@ RUN npm run build


### Deployment
FROM base as deployment
FROM node:20.8.0-alpine3.18 as deployment

ENV NO_UPDATE_NOTIFIER=true

RUN npm ci --only=production
USER node
ARG APP_HOME=/home/node/srv
WORKDIR $APP_HOME

COPY package.json package.json
COPY package-lock.json package-lock.json

COPY --chown=node:node . $APP_HOME
COPY --chown=node:node --from=build $APP_HOME/lib $APP_HOME/lib
Expand Down
4 changes: 4 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ Please consult the documentation for using it:
- *link:https://docs.restorecommerce.io/architecture/index.html[Restorecommerce Architecture]*
Part of link:https://github.com/restorecommerce[Restorecommerce].

== Contributing

Read more in link:{docdir}/CONTRIBUTING.md[CONTRIBUTING.md]
Loading

0 comments on commit 352ce29

Please sign in to comment.