FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
InsecureRestAPI/Dockerfile at main · kadraman/InsecureRestAPI · GitHub
kadraman
/
InsecureRestAPI
Public
Notifications
You must be signed in to change notification settings
Fork
3
Star
1
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
InsecureRestAPI
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (22 loc) · 738 Bytes
Breadcrumbs
InsecureRestAPI
/
Dockerfile
Copy path
File metadata and controls
32 lines (22 loc) · 738 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM
node:lts-bullseye
LABEL
maintainer=
"klee2@opentext.com"
#
Add docker-compose-wait tool -------------------
ENV
WAIT_VERSION 2.12.1
ADD
https://github.com/ufoscout/docker-compose-wait/releases/download/$WAIT_VERSION/wait /wait
RUN
chmod +x /wait
ENV
NODE_ENV production
#
Create app directory
WORKDIR
/home/node/app
#
Install app dependencies
#
A wildcard is used to ensure both package.json AND package-lock.json are copied
#
where available (npm@5+)
COPY
package*.json ./
RUN
npm install
#
If you are building your code for production
#
RUN npm ci --only=production
#
Bundle app source
ADD
dist ./
COPY
config ./config/
#
Make port 5000 available to the world outside this container
EXPOSE
5000
CMD
[
"node"
,
"index.js"
]
Back
|
FazBrowse Home
|
New Git URL