-
-
Save lbrenman/db8ccdb64801f315d379c94bada7eac3 to your computer and use it in GitHub Desktop.
Publish a Nodejs App to Axway's ARS (assets)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:alpine | |
WORKDIR '/app' | |
COPY package.json . | |
RUN npm install | |
COPY . . | |
CMD ["npm","start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const app = express(); | |
app.get("/", (req, res) => { | |
res.send("Hello Node/Express App!!!"); | |
}); | |
app.listen(4001, () => { | |
console.log("listening on port 4001"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"express": "*" | |
}, | |
"scripts": { | |
"start": "node index.js" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment