forked from tsai/budibase
committed by
GitHub
5 changed files with 39 additions and 14 deletions
@ -0,0 +1,11 @@ |
|||||
|
FROM node:12-alpine |
||||
|
|
||||
|
WORKDIR /app |
||||
|
|
||||
|
# copy files and install dependencies |
||||
|
COPY . ./ |
||||
|
RUN yarn |
||||
|
|
||||
|
EXPOSE 4001 |
||||
|
|
||||
|
CMD ["yarn", "run:docker"] |
||||
@ -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() |
||||
Loading…
Reference in new issue