Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
helloworld-ts
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
Saleh.Bauch
helloworld-ts
Commits
0ca0f558
Commit
0ca0f558
authored
1 year ago
by
Saleh.Bauch
Browse files
Options
Downloads
Patches
Plain Diff
multi-stage
parent
7dd62d27
Branches
main
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+13
-0
13 additions, 0 deletions
Dockerfile
package-lock.json
+1338
-3
1338 additions, 3 deletions
package-lock.json
package.json
+2
-1
2 additions, 1 deletion
package.json
with
1353 additions
and
4 deletions
Dockerfile
0 → 100644
+
13
−
0
View file @
0ca0f558
FROM
node:slim
as
build-stage
WORKDIR
/app
COPY
. .
RUN
npm
install
RUN
npm run build
FROM
node:alpine
as
run-stage
WORKDIR
/app
COPY
--from=build-stage /app/dist/index.js /app/dist/
COPY
--from=build-stage /app/package*.json ./
RUN
npm
install
--omit
=
dev
EXPOSE
3000
CMD
["node", "dist/index.js"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
package-lock.json
+
1338
−
3
View file @
0ca0f558
This diff is collapsed.
Click to expand it.
package.json
+
2
−
1
View file @
0ca0f558
...
...
@@ -9,7 +9,8 @@
"description"
:
"A simple HTTP server in TypeScript"
,
"main"
:
"dist/index.js"
,
"dependencies"
:
{
"
express
"
:
"
^4.18.2
"
"
express
"
:
"
^4.18.2
"
,
"
pkg
"
:
"
^5.8.1
"
},
"scripts"
:
{
"build"
:
"tsc"
,
...
...
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