Skip to content

Instantly share code, notes, and snippets.

@lbrenman
Created July 21, 2020 19:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbrenman/db8ccdb64801f315d379c94bada7eac3 to your computer and use it in GitHub Desktop.
Save lbrenman/db8ccdb64801f315d379c94bada7eac3 to your computer and use it in GitHub Desktop.
Publish a Nodejs App to Axway's ARS (assets)
FROM node:alpine
WORKDIR '/app'
COPY package.json .
RUN npm install
COPY . .
CMD ["npm","start"]
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");
});
{
"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