-
Notifications
You must be signed in to change notification settings - Fork 69
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 #2378 from fedspendingtransparency/qat
Sprint 125 Promotion to Production
- Loading branch information
Showing
96 changed files
with
2,316 additions
and
2,154 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,3 @@ | ||
# Keep docker image clean of any development-generated artifacts by ignoring them on COPY | ||
node_modules | ||
public |
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 |
---|---|---|
|
@@ -61,7 +61,7 @@ usa_spending.sh | |
/scripts/sitemaps/sitemapFiles/*.xml | ||
|
||
# direnv | ||
.envrc | ||
\.envrc | ||
|
||
# IDE stuff | ||
.vscode |
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,13 +1,22 @@ | ||
FROM node:12.18.4 | ||
|
||
RUN mkdir /node-workspace | ||
COPY package.json /node-workspace | ||
COPY package-lock.json /node-workspace | ||
# Default environment variables | ||
ENV ENV=prod USASPENDING_API=https://api.usaspending.gov/api/ MAPBOX_TOKEN='' GA_TRACKING_ID='' | ||
|
||
RUN mkdir /node-workspace && mkdir /test-results | ||
|
||
# Copy JUST the package files first. | ||
# This allows Docker to NOT re-fetch all NPM packages if neither of these two files | ||
# have changed, and instead use the cached layer containing all those dependent packages. | ||
# Greatly speeds up repeated docker build calls on the same machine (like CI/CD boxes) | ||
# by leveraging the docker image cache | ||
COPY package.json package-lock.json /node-workspace/ | ||
|
||
WORKDIR /node-workspace | ||
|
||
# Clean Node module dependencies and install them fresh | ||
RUN npm ci | ||
|
||
# Now copy the remaining source files | ||
# Files in .dockerignore will not be copied | ||
COPY . /node-workspace | ||
|
||
RUN mkdir /test-results |
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
Oops, something went wrong.