Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GÉANT Service Orchestrator GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
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
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
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator GUI
Commits
c0311c86
Verified
Commit
c0311c86
authored
1 year ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
update Dockerfile to clone the repo instead of a submodule
parent
10e8382b
No related branches found
No related tags found
2 merge requests
!2
merge to develop
,
!1
Feature/fix dockerfile
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.dockerignore
+0
-1
0 additions, 1 deletion
.dockerignore
Dockerfile
+9
-8
9 additions, 8 deletions
Dockerfile
with
9 additions
and
9 deletions
.dockerignore
deleted
100644 → 0
+
0
−
1
View file @
10e8382b
Dockerfile
This diff is collapsed.
Click to expand it.
Dockerfile
+
9
−
8
View file @
c0311c86
### THIS FILE IS A REPLICA FROM ORCHESTRATOR-CORE-GUI WITH SOME
MINOR
ADJUSTMENTS
### THIS FILE IS A REPLICA FROM ORCHESTRATOR-CORE-GUI WITH SOME ADJUSTMENTS
###############################
###############################
### BASE LAYER FOR IMAGES BELOW
### BASE LAYER FOR IMAGES BELOW
FROM
node:14.21.1-slim
AS
base
FROM
node:14.21.1-slim
AS
base
ENV
CI=true
ENV
CI=true
ENV
CORE_GUI_TAG=10.7.6
WORKDIR
/app
WORKDIR
/app
COPY
orchestrator-core-gui/package.json .
RUN
apt update
&&
apt
install
git
-y
COPY
orchestrator-core-gui
/yarn.lock .
RUN
git clone
--branch
10.7.6 https://github.com/workfloworchestrator/
orchestrator-core-gui
.git
--depth
1
###########################################
###########################################
### BUILDER LAYER TO PREPARE FOR PRODUCTION
### BUILDER LAYER TO PREPARE FOR PRODUCTION
FROM
base
AS
builder
FROM
base
AS
builder
RUN
apt update
&&
apt
install
git
-y
WORKDIR
/app/orchestrator-core-gui
RUN
yarn
--network-concurrency
1
--frozen-lockfile
RUN
yarn
--network-concurrency
1
--frozen-lockfile
COPY
orchestrator-core-gui/ .
RUN
rm
-rf
src/custom
RUN
rm
-rf
src/custom
COPY
custom src/custom
COPY
custom src/custom
COPY
logo.svg src/images/logo.svg
COPY
logo.svg src/images/logo.svg
...
@@ -26,10 +26,11 @@ RUN yarn build
...
@@ -26,10 +26,11 @@ RUN yarn build
### IMAGE FOR PRODUCTION
### IMAGE FOR PRODUCTION
FROM
nginx:alpine
FROM
nginx:alpine
WORKDIR
/app
RUN
apk update
&&
apk add wget curl
RUN
apk update
&&
apk add wget curl
COPY
orchestrator-core-gui/default.conf /etc/nginx/conf.d/default.conf
COPY
--from=builder /app/
orchestrator-core-gui/default.conf /etc/nginx/conf.d/default.conf
COPY
--from=builder /app/build /usr/share/nginx/html
COPY
--from=builder /app/
orchestrator-core-gui/
build /usr/share/nginx/html
COPY
--from=builder /app/src/env.js.template .
COPY
--from=builder /app/
orchestrator-core-gui/
src/env.js.template .
EXPOSE
8080
EXPOSE
8080
CMD
[ "/bin/ash", "-c", "envsubst < env.js.template > /usr/share/nginx/html/env.js && exec nginx -g 'daemon off;'"]
CMD
[ "/bin/ash", "-c", "envsubst < env.js.template > /usr/share/nginx/html/env.js && exec nginx -g 'daemon off;'"]
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