Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-ws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-ws
Commits
87560b3a
Commit
87560b3a
authored
1 year ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
5d29a728
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!216
Landing Page
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+14
-6
14 additions, 6 deletions
Dockerfile
with
14 additions
and
6 deletions
Dockerfile
+
14
−
6
View file @
87560b3a
...
@@ -20,10 +20,10 @@ ARG CI_COMMIT_BRANCH=null
...
@@ -20,10 +20,10 @@ ARG CI_COMMIT_BRANCH=null
WORKDIR
/app
WORKDIR
/app
COPY
. .
USER
root
USER
root
COPY
. .
RUN
./gradlew assemble
RUN
./gradlew assemble
####
####
...
@@ -31,17 +31,25 @@ RUN ./gradlew assemble
...
@@ -31,17 +31,25 @@ RUN ./gradlew assemble
####
####
FROM
${FROM_IMAGE}
FROM
${FROM_IMAGE}
ENV
CONTEXT_PATH
"/"
ENV
CONTEXT_PATH
=
"/"
ENV
JAVA_OPTS=""
ENV
JAVA_OPTS=""
WORKDIR
/app
WORKDIR
/app
COPY
--from=builder /app/build/libs/nshmp-ws-all.jar .
USER
root
COPY
--from=builder /app/fault-sections /app/fault-sections
RUN
mkdir
/asset-output
\
&&
chown
-R
usgs-user:usgs-user /app
\
&&
chown
-R
usgs-user:usgs-user /asset-output
USER
usgs-user
COPY
--from=builder --chown=usgs-user:usgs-user /app/build/libs/nshmp-ws-all.jar .
COPY
--from=builder --chown=usgs-user:usgs-user /app/fault-sections /app/fault-sections
EXPOSE
8080
EXPOSE
8080
CMD
/usr/bin/
java \
CMD
java \
${JAVA_OPTS} \
${JAVA_OPTS} \
-jar \
-jar \
"-Dmicronaut.server.context-path=${CONTEXT_PATH}" \
"-Dmicronaut.server.context-path=${CONTEXT_PATH}" \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment