Commit 96eb519a authored by nilanjandaw's avatar nilanjandaw

fixed Dockerfile path bug

parent 1f5318fb
...@@ -42,7 +42,7 @@ app.post('/serverless/deploy', (req, res) => { ...@@ -42,7 +42,7 @@ app.post('/serverless/deploy', (req, res) => {
} }
else { else {
if (runtime === "container") { if (runtime === "container") {
deployContainer('./test/', functionHash) deployContainer('./repository/', functionHash)
.then(() => { .then(() => {
res.json({ res.json({
status: "success", status: "success",
...@@ -69,7 +69,7 @@ function deployContainer(path, imageName) { ...@@ -69,7 +69,7 @@ function deployContainer(path, imageName) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let buildStart = Date.now() let buildStart = Date.now()
fs.writeFile('./test/Dockerfile', fs.writeFile('./repository/Dockerfile',
`FROM node:latest `FROM node:latest
WORKDIR /app WORKDIR /app
COPY package.json /app COPY package.json /app
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment