Skip to content

Commit 9c587e5

Browse files
Merge pull request #153 from bcgov/chore/release
Release BCBox v0.6.0
2 parents 90004e9 + d70d008 commit 9c587e5

File tree

10 files changed

+1613
-1204
lines changed

10 files changed

+1613
-1204
lines changed

.codeclimate.yml

-6
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,3 @@ plugins:
4949
enabled: false
5050
nodesecurity:
5151
enabled: true
52-
sass-lint:
53-
enabled: true
54-
rules:
55-
nesting-depth:
56-
- 2
57-
- max-depth: 5

Dockerfile

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
ARG APP_ROOT=/opt/app-root/src
22
ARG BASE_IMAGE=docker.io/node:20.9.0-alpine
33

4+
#
5+
# Build the app
6+
#
7+
FROM ${BASE_IMAGE} as app
8+
9+
ARG APP_ROOT
10+
ENV NO_UPDATE_NOTIFIER=true
11+
12+
# NPM Permission Fix
13+
RUN mkdir -p /.npm
14+
RUN chown -R 1001:0 /.npm
15+
16+
# Build App
17+
COPY app ${APP_ROOT}
18+
RUN chown -R 1001:0 ${APP_ROOT}
19+
USER 1001
20+
WORKDIR ${APP_ROOT}
21+
RUN npm ci && npm run build
22+
423
#
524
# Build the frontend
625
#
@@ -34,15 +53,17 @@ RUN mkdir -p /.npm
3453
RUN chown -R 1001:0 /.npm
3554

3655
# Install File Structure
56+
COPY --from=app ${APP_ROOT}/sbin ${APP_ROOT}/sbin
3757
COPY --from=frontend ${APP_ROOT}/dist ${APP_ROOT}/dist
3858
COPY .git ${APP_ROOT}/.git
39-
COPY app ${APP_ROOT}
59+
COPY app/config ${APP_ROOT}/config
60+
COPY app/package.json app/package-lock.json ${APP_ROOT}
4061
WORKDIR ${APP_ROOT}
4162

4263
# Install Application
4364
RUN chown -R 1001:0 ${APP_ROOT}
4465
USER 1001
45-
RUN npm ci --omit=dev && npm run build
66+
RUN npm ci --omit=dev
4667

4768
EXPOSE ${APP_PORT}
4869
CMD ["node", "./sbin/bin/www"]

SECURITY.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ At this time, only the latest version of BCBox is supported.
1414

1515
| Version | Supported |
1616
| ------- | ------------------ |
17-
| 0.5.0 | :white_check_mark: |
18-
| < 0.5.x | :x: |
17+
| 0.6.0 | :white_check_mark: |
18+
| < 0.6.x | :x: |
1919

2020
## Reporting a Bug
2121

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

4949
## Comments on this Policy
5050

0 commit comments

Comments
 (0)