This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from HospitalRun/master
Merged from HospitalRun/hospitalrun-frontend
- Loading branch information
Showing
87 changed files
with
3,587 additions
and
853 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 |
---|---|---|
@@ -1 +1,19 @@ | ||
node_modules | ||
# Items that don't need to be in a Docker image. | ||
# Anything not used by the build system should go here. | ||
.gitignore | ||
*.md | ||
*.yml | ||
.git | ||
*.js | ||
azure | ||
.editorconfig | ||
.github | ||
.npmrc | ||
.nvmrc | ||
.prettierrc | ||
.replit | ||
.vscode | ||
LICENSE | ||
docs | ||
*.log | ||
.env* |
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 @@ | ||
REACT_APP_HOSPITALRUN_API=http://0.0.0.0:3001 |
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
name: 👮 Security Issue | ||
name: "\U0001F46E Security Issue" | ||
about: Responsible Disclosure | ||
title: '' | ||
labels: '' | ||
|
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
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 @@ | ||
name: Compressed Size | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2-beta | ||
with: | ||
fetch-depth: 1 | ||
- uses: preactjs/compressed-size-action@v1 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "lts/*" | ||
- 'lts/*' | ||
|
||
branches: | ||
only: | ||
|
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
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 |
---|---|---|
@@ -1,41 +1,17 @@ | ||
FROM node:10-alpine as build | ||
LABEL maintainer="Michael Feher, Matteo Vivona, Maksim Sinik" | ||
FROM node:12-alpine as build | ||
|
||
# set app basepath | ||
ENV HOME=/home/app | ||
|
||
# copy all app files | ||
COPY . $HOME/node/ | ||
|
||
# change workgin dir and install deps in quiet mode | ||
WORKDIR $HOME/node | ||
RUN npm ci -q | ||
RUN npm install -q | ||
|
||
# compile typescript and build all production stuff | ||
RUN npm run build | ||
|
||
# remove dev dependencies that are not needed in production | ||
RUN npm prune --production | ||
|
||
# start new image for lower size | ||
FROM node:10-alpine | ||
|
||
# create use with no permissions | ||
RUN addgroup -g 101 -S app && adduser -u 100 -S -G app -s /bin/false app | ||
|
||
# set app basepath | ||
ENV HOME=/home/app | ||
|
||
# copy production complied node app to the new image | ||
COPY --from=build $HOME/node/ $HOME/node/ | ||
RUN chown -R app:app $HOME/* | ||
|
||
# run app with low permissions level user | ||
USER app | ||
WORKDIR $HOME/node | ||
|
||
EXPOSE 3000 | ||
|
||
ENV NODE_ENV=production | ||
FROM nginx:stable-alpine | ||
|
||
CMD [ "yarn", "start" ] | ||
COPY --from=build /home/app/node/build/ /usr/share/nginx/html | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.