Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
next-kubernetes
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
Container Registry
Model registry
Operate
Environments
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
Show more breadcrumbs
gitlab-ci
next-kubernetes
Commits
e44768c6
Commit
e44768c6
authored
4 years ago
by
Marco Wettstein
Browse files
Options
Downloads
Plain Diff
Merge branch 'f/speedup-docker' into 'master'
F/speedup docker See merge request
!6
parents
7d6a03f5
b7beebae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
F/speedup docker
Pipeline
#88324
passed
4 years ago
Stage: test
Stage: build
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
next-kubernetes.yml
+18
-4
18 additions, 4 deletions
next-kubernetes.yml
with
18 additions
and
4 deletions
next-kubernetes.yml
+
18
−
4
View file @
e44768c6
...
@@ -5,16 +5,30 @@ include:
...
@@ -5,16 +5,30 @@ include:
.ensureDocker
:
&ensureDocker
|
.ensureDocker
:
&ensureDocker
|
function ensureDockerfile() {
function ensureDockerfile() {
if [ ! -f .dockerignore ]; then
cat > .dockerignore <<EOF
node_modules
.git
EOF
fi
if [ ! -f Dockerfile ]; then
if [ ! -f Dockerfile ]; then
echo "Creating Dockerfile"
echo "Creating Dockerfile"
cat > Dockerfile <<EOF
cat > Dockerfile <<EOF
FROM node:12.18
FROM node:14-alpine
ADD . /app
WORKDIR /app
WORKDIR /app
RUN yarn --production
RUN apk add --no-cache git
EXPOSE 8080
COPY --chown=node:node package.json yarn.lock ./
RUN chown -R node:node .
USER node
RUN yarn --frozen-lockfile --production=true --ignore-scripts
COPY --chown=node:node . .
RUN yarn --frozen-lockfile --production=true
EOF
EOF
fi
fi
...
...
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