adding semi working docker file...
This commit is contained in:
@@ -1,15 +1,16 @@
|
|||||||
# IMPORTANT: run from root of monolithic repo
|
# IMPORTANT: run from root of monolithic repo
|
||||||
FROM ubuntu
|
FROM node
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# The global package.json only contains build dependencies
|
# The global package.json only contains build dependencies
|
||||||
COPY ./package.json .
|
COPY ./package.json .
|
||||||
COPY ./yarn.lock .
|
|
||||||
|
|
||||||
# copy the source coded needed for all dependencies
|
# copy the source coded needed for all dependencies
|
||||||
COPY ./packages/core packages/core
|
COPY packages/core packages/core
|
||||||
COPY ./packages/api packages/api
|
COPY packages/api packages/api
|
||||||
|
|
||||||
|
# RUN npm i -g yarn
|
||||||
|
|
||||||
# run and compile the core package
|
# run and compile the core package
|
||||||
WORKDIR /app/packages/core
|
WORKDIR /app/packages/core
|
||||||
@@ -22,6 +23,5 @@ RUN yarn build
|
|||||||
|
|
||||||
CMD ["yarn", "start"]
|
CMD ["yarn", "start"]
|
||||||
|
|
||||||
|
|
||||||
# docker build -t talksik/nirvana-api:1.0
|
# docker build -t talksik/nirvana-api:1.0
|
||||||
# docker run -p 5000:8080 -d
|
# docker run -p 5000:8080 -d
|
||||||
@@ -1 +0,0 @@
|
|||||||
node_modules/
|
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "NODE_ENV=development nodemon",
|
"dev": "NODE_ENV=development nodemon",
|
||||||
"start": "node dist/index.js",
|
"start": "node dist/index.js",
|
||||||
"gcp-build": "tsc -p .",
|
"build": "tsc -p .",
|
||||||
"start:dev": "ts-node index.ts",
|
"start:dev": "ts-node index.ts",
|
||||||
"production": "NODE_ENV=production nodemon"
|
"production": "NODE_ENV=production nodemon"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user