Skip to content

Commit

Permalink
Merge pull request #153 from bcgov/chore/release
Browse files Browse the repository at this point in the history
Release BCBox v0.6.0
  • Loading branch information
jatindersingh93 authored Dec 22, 2023
2 parents 90004e9 + d70d008 commit 9c587e5
Show file tree
Hide file tree
Showing 10 changed files with 1,613 additions and 1,204 deletions.
6 changes: 0 additions & 6 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,3 @@ plugins:
enabled: false
nodesecurity:
enabled: true
sass-lint:
enabled: true
rules:
nesting-depth:
- 2
- max-depth: 5
25 changes: 23 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
ARG APP_ROOT=/opt/app-root/src
ARG BASE_IMAGE=docker.io/node:20.9.0-alpine

#
# Build the app
#
FROM ${BASE_IMAGE} as app

ARG APP_ROOT
ENV NO_UPDATE_NOTIFIER=true

# NPM Permission Fix
RUN mkdir -p /.npm
RUN chown -R 1001:0 /.npm

# Build App
COPY app ${APP_ROOT}
RUN chown -R 1001:0 ${APP_ROOT}
USER 1001
WORKDIR ${APP_ROOT}
RUN npm ci && npm run build

#
# Build the frontend
#
Expand Down Expand Up @@ -34,15 +53,17 @@ RUN mkdir -p /.npm
RUN chown -R 1001:0 /.npm

# Install File Structure
COPY --from=app ${APP_ROOT}/sbin ${APP_ROOT}/sbin
COPY --from=frontend ${APP_ROOT}/dist ${APP_ROOT}/dist
COPY .git ${APP_ROOT}/.git
COPY app ${APP_ROOT}
COPY app/config ${APP_ROOT}/config
COPY app/package.json app/package-lock.json ${APP_ROOT}
WORKDIR ${APP_ROOT}

# Install Application
RUN chown -R 1001:0 ${APP_ROOT}
USER 1001
RUN npm ci --omit=dev && npm run build
RUN npm ci --omit=dev

EXPOSE ${APP_PORT}
CMD ["node", "./sbin/bin/www"]
6 changes: 3 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ At this time, only the latest version of BCBox is supported.

| Version | Supported |
| ------- | ------------------ |
| 0.5.0 | :white_check_mark: |
| < 0.5.x | :x: |
| 0.6.0 | :white_check_mark: |
| < 0.6.x | :x: |

## Reporting a Bug

Expand Down Expand Up @@ -44,7 +44,7 @@ involving the following steps:
- Confirm the problem and determine the affected versions.
- Audit code to find any potential similar problems.
- Prepare fixes for all releases still under maintenance. These fixes will be
released as fast as possible.
released as fast as possible.

## Comments on this Policy

Expand Down
Loading

0 comments on commit 9c587e5

Please sign in to comment.