-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 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 |
---|---|---|
|
@@ -24,6 +24,13 @@ COPY . /data-portal | |
RUN cp /data-portal/nginx.conf /etc/nginx/conf.d/nginx.conf \ | ||
&& chown -R gen3: /data-portal | ||
|
||
# In standard prod these will be overwritten by volume mounts | ||
# Provided here for ease of use in development and | ||
# non-standard deployment environments | ||
|
||
RUN mkdir /mnt/ssl \ | ||
&& openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /mnt/ssl/nginx.key -out /mnt/ssl/nginx.crt -subj '/countryName=US/stateOrProvinceName=Illinois/localityName=Chicago/organizationName=CDIS/organizationalUnitName=PlanX/commonName=localhost/[email protected]' | ||
|
||
WORKDIR /data-portal | ||
USER gen3 | ||
RUN COMMIT=`git rev-parse HEAD` && echo "export const portalCommit = \"${COMMIT}\";" >src/versions.js \ | ||
|
@@ -37,11 +44,4 @@ RUN npm config set unsafe-perm=true \ | |
# see https://stackoverflow.com/questions/48387040/nodejs-recommended-max-old-space-size | ||
RUN NODE_OPTIONS=--max-old-space-size=3584 NODE_ENV=production npx webpack build | ||
|
||
# In standard prod these will be overwritten by volume mounts | ||
# Provided here for ease of use in development and | ||
# non-standard deployment environments | ||
|
||
RUN mkdir /mnt/ssl \ | ||
&& openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /mnt/ssl/nginx.key -out /mnt/ssl/nginx.crt -subj '/countryName=US/stateOrProvinceName=Illinois/localityName=Chicago/organizationName=CDIS/organizationalUnitName=PlanX/commonName=localhost/[email protected]' | ||
|
||
CMD [ "bash", "./dockerStart.sh" ] |