1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

budibase dockerfile

This commit is contained in:
Martin McKeaveney 2020-06-15 17:06:54 +01:00
parent 3509e0743d
commit f70407b6eb
3 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,11 @@
FROM node:12-alpine
WORKDIR /app
# copy files and install dependencies
COPY . ./
RUN yarn
EXPOSE 4001
CMD ["yarn", "run:docker"]

View file

@ -27,6 +27,7 @@
"test:integration": "jest workflow --runInBand",
"test:watch": "jest --watch",
"initialise": "node ../cli/bin/budi init -b local -q",
"run:docker": "node src/index",
"budi": "node ../cli/bin/budi",
"dev:builder": "nodemon ../cli/bin/budi run",
"electron": "electron src/electron.js",

View file

@ -0,0 +1,13 @@
const { resolve } = require("path")
async function runServer() {
const budibaseDir = "~/.budibase";
process.env.BUDIBASE_DIR = resolve(budibaseDir)
const server = await require("./app")();
server.on("close", () => console.log("Server Closed"))
console.log(`Budibase running on ${JSON.stringify(server.address())}`)
}
runServer();