dockerize front end (#558)

* initial docker

* adds concurrency to be able to run yarn install

* adds 0.0.0.0 to allow docker access

* adds web service

* adds env variables

* updates root path

* adds volumes

* adds docker to readme

* adds score server client docker

* docker updates after convo

* speeds up build and removes env vars

* adds client as volume

* updates to docker setup

* checkpoint

* updates the docker file

* adds .env.* files

* replaces serve with http-server for cors

Co-authored-by: Jorge Escobar <jorge.e.escobar@omb.eop.gov>
This commit is contained in:
Vim 2021-09-01 11:16:29 -07:00 committed by GitHub
commit 89c23faf7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 113 additions and 30 deletions

8
client/.env.development Normal file
View file

@ -0,0 +1,8 @@
GATSBY_DATA_ROOT_PATH=https://d3jqyw10j8e7p9.cloudfront.net
GATSBY_DATA_PIPELINE_SCORE_PATH=data-pipeline/data/score
GATSBY_SCORE_DOWNLOAD_FILE_PATH=downloadable/Screening+Tool+Data.zip
GATSBY_MAP_TILES_PATH=tiles
# These may be used in the future:
# WEB_APP_CDN_BASE_URL=https://d2zjid6n5ja2pt.cloudfront.net
# S3_BASE_URL=https://justice40-data.s3.amazonaws.com