-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy/move Dockerfile to top-level to bugfix push action
Signed-off-by: Jeremy Ho <jujaga@gmail.com>
- Loading branch information
Showing
3 changed files
with
60 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,29 @@ | ||
.DS_Store | ||
.gradle | ||
.nyc_output | ||
.scannerwork | ||
build | ||
coverage | ||
dist | ||
node_modules | ||
|
||
# local env files | ||
local.* | ||
local-*.* | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.iml | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw* |
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,30 @@ | ||
FROM docker.io/bcgovimages/alpine-node-libreoffice:20.9.0 | ||
|
||
ARG APP_ROOT=/opt/app-root/src | ||
ENV APP_PORT=8080 \ | ||
NO_UPDATE_NOTIFIER=true | ||
WORKDIR ${APP_ROOT} | ||
|
||
# Install Zip | ||
RUN apk --no-cache add zip && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
# Install BCSans Font | ||
RUN wget https://www2.gov.bc.ca/assets/gov/british-columbians-our-governments/services-policies-for-government/policies-procedures-standards/web-content-development-guides/corporate-identity-assets/bcsansfont_print.zip?forcedownload=true -O bcsans.zip && \ | ||
unzip bcsans.zip && \ | ||
rm bcsans.zip && \ | ||
mkdir -p /usr/share/fonts/bcsans && \ | ||
install -m 644 ./BcSansFont_Print/*.ttf /usr/share/fonts/bcsans/ && \ | ||
rm -rf ./BcSansFont_Print && \ | ||
fc-cache -f | ||
|
||
# NPM Permission Fix (already present in base image) | ||
|
||
# Install Application | ||
COPY app ${APP_ROOT} | ||
RUN chown -R 1001:0 ${APP_ROOT} | ||
USER 1001 | ||
RUN npm ci --omit=dev | ||
|
||
EXPOSE ${APP_PORT} | ||
CMD ["npm", "run", "start"] |
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