Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor 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
Statistical-Genetics
jass
Merge requests
!81
Fix build client
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix build client
fix-build-client
into
master
Overview
0
Commits
5
Pipelines
0
Changes
4
Merged
Simon Malesys
requested to merge
fix-build-client
into
master
1 year ago
Overview
0
Commits
5
Pipelines
0
Changes
4
Expand
Enhance configuration for the client build and container.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
915146bc
5 commits,
1 year ago
4 files
+
4532
−
3745
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
client/Dockerfile
+
4
−
6
Options
#################################################
# container shipping client source and dependencies
#################################################
FROM
node:16
-buster
as
client-base-container
FROM
node:16
.20-alpine3.18
as
client-base-container
ARG
API_URL
RUN
mkdir
/client
\
&&
cd
/client
\
&&
npm
install
yarn
&&
cd
/client
WORKDIR
/client
COPY
package.json /client/
COPY
yarn.lock /client/
RUN
yarn
install
COPY
. /client
#################################################
# container that will generate the client
#################################################
@@ -27,11 +26,10 @@ ARG API_URL
RUN
yarn run generate
#################################################
# container that will serve the client
#################################################
FROM
nginxinc/nginx-unprivileged:
latest
as
client-static-serve
FROM
nginxinc/nginx-unprivileged:
stable-alpine
as
client-static-serve
COPY
--from=client-static-build /client/dist /usr/share/nginx/html
COPY
--from=client-static-build /client/nginx.conf /etc/nginx/conf.d/default.conf
Loading