Skip to content

Commit 227cff5

Browse files
committed
Subida la aplicación de ejemplo hello-world al apartado de CD en Azure DevOps
1 parent 0f99f0e commit 227cff5

File tree

8 files changed

+2274
-0
lines changed

8 files changed

+2274
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**/.classpath
2+
**/.dockerignore
3+
**/.env
4+
**/.git
5+
**/.gitignore
6+
**/.project
7+
**/.settings
8+
**/.toolstarget
9+
**/.vs
10+
**/.vscode
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/azds.yaml
15+
**/charts
16+
**/docker-compose*
17+
**/Dockerfile*
18+
**/node_modules
19+
**/npm-debug.log
20+
**/obj
21+
**/secrets.dev.yaml
22+
**/values.dev.yaml
23+
README.md
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es2021": true
6+
},
7+
"extends": "eslint:recommended",
8+
"parserOptions": {
9+
"ecmaVersion": 12
10+
},
11+
"rules": {
12+
// "semi" : ["error","always"],
13+
// "quotes": ["error", "double"],
14+
"no-debugger": ["error"],
15+
"no-console": ["warn"]
16+
},
17+
"globals": {
18+
"_": false
19+
}
20+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM node:12.18-alpine
2+
LABEL maintainer="Gisela Torres"
3+
ENV NODE_ENV production
4+
WORKDIR /usr/src/app
5+
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
6+
RUN npm install --silent --production && mv node_modules ../
7+
COPY . .
8+
# RUN npm run test
9+
EXPOSE 3000
10+
CMD ["npm", "start"]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>Hello World from Node.js</title>
6+
</head>
7+
8+
<body>
9+
<h1>Hello World from a container!</h1>
10+
</body>
11+
12+
</html>

0 commit comments

Comments
 (0)