Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Main Next
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
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
mashplace
frontend
Main Next
Commits
dc4eb621
Commit
dc4eb621
authored
1 year ago
by
rromanov
Browse files
Options
Downloads
Patches
Plain Diff
Changed pipeline schema
parent
4b2b7455
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
Dockerfile
+60
-0
60 additions, 0 deletions
Dockerfile
with
62 additions
and
2 deletions
.gitlab-ci.yml
+
2
−
2
View file @
dc4eb621
...
...
@@ -20,5 +20,5 @@ variables:
################################################################################
include
:
-
project
:
infrastructure-team/operations/
mashroom
file
:
/CICD
/pipelines/frontend-
main
-cicd.yaml
-
project
:
infrastructure-team/operations/
cicd
file
:
/pipelines/frontend-
nodejs
-cicd.yaml
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
60
−
0
View file @
dc4eb621
################################################################################
### BUILD ###
################################################################################
# syntax=docker/dockerfile:1
ARG
REGISTRY
ARG
VERSION
FROM
$REGISTRY/infrastructure-team/operations/imagebaykery/nodejsbuild:$VERSION
AS
builder
ARG
NODE_ENV
ENV
NODE_ENV=$NODE_ENV
WORKDIR
/main-next
### "git-rev-sync" dependency needs .git folder to be copied;
### Check that .git folder not in .dockerignore
### Will not build without .git folder;
COPY
. .
RUN
yarn
install
--frozen-lockfile
--ignore-engines
RUN
yarn build
COPY
.yarnclean-production ./.yarnclean
RUN
yarn
install
--production
################################################################################
### PRODUCTION ###
################################################################################
ARG
VERSION
FROM
node:$VERSION-alpine
as
production
ENV
NODE_ENV=production
RUN
apk
--no-cache
add curl bash gifsicle
WORKDIR
/app
COPY
--from=builder /main-next/public ./public/
COPY
--from=builder /main-next/yarn.lock .
COPY
--from=builder /main-next/.env .
COPY
--from=builder /main-next/next.config.js .
COPY
--from=builder /main-next/server.js .
COPY
--from=builder /main-next/node_modules ./node_modules/
COPY
--from=builder /main-next/.next ./.next/
CMD
node -r dotenv-flow/config server.js
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