Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui-middleware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue 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
Open Source Software
OX App Suite
Core
ui-middleware
Commits
0a4f822a
Commit
0a4f822a
authored
3 years ago
by
david.bauer
Browse files
Options
Downloads
Patches
Plain Diff
Change to distroless image
parent
80fd3809
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+12
-6
12 additions, 6 deletions
Dockerfile
with
12 additions
and
6 deletions
Dockerfile
+
12
−
6
View file @
0a4f822a
FROM
node:1
7-alpine
FROM
node:1
6-slim
as
build-env
LABEL
maintainer="ui-team@open-xchange.com"
WORKDIR
/app
ADD
. /app
RUN
yarn
--production
--non-interactive
--no-progress
-s
FROM
gcr.io/distroless/nodejs:16
USER
1000
ARG
APP_VERSION
ARG
BUILD_TIMESTAMP
ARG
CI_COMMIT_SHA
...
...
@@ -8,9 +15,8 @@ ENV APP_VERSION=$APP_VERSION
ENV
BUILD_TIMESTAMP=$BUILD_TIMESTAMP
ENV
CI_COMMIT_SHA=$CI_COMMIT_SHA
WORKDIR
/app
ADD
. /app
RUN
yarn
--production
--non-interactive
--no-progress
-s
EXPOSE
8080
CMD
["node", "src/index.js"]
COPY
--from=build-env /app /app
WORKDIR
/app
CMD
["src/index.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