Commit 96eb519a authored by nilanjandaw's avatar nilanjandaw

fixed Dockerfile path bug

parent 1f5318fb
......@@ -42,7 +42,7 @@ app.post('/serverless/deploy', (req, res) => {
}
else {
if (runtime === "container") {
deployContainer('./test/', functionHash)
deployContainer('./repository/', functionHash)
.then(() => {
res.json({
status: "success",
......@@ -69,7 +69,7 @@ function deployContainer(path, imageName) {
return new Promise((resolve, reject) => {
let buildStart = Date.now()
fs.writeFile('./test/Dockerfile',
fs.writeFile('./repository/Dockerfile',
`FROM node:latest
WORKDIR /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