Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xanadu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
SYNERG
xanadu
Commits
96eb519a
Commit
96eb519a
authored
Jan 27, 2020
by
nilanjandaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed Dockerfile path bug
parent
1f5318fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dispatcher/index.js
dispatcher/index.js
+2
-2
No files found.
dispatcher/index.js
View file @
96eb519a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment