adding semi working docker file...

This commit is contained in:
talksik
2022-06-03 09:53:02 -07:00
parent 13efe5e951
commit aa9b5aa954
3 changed files with 6 additions and 7 deletions
-1
View File
@@ -1 +0,0 @@
node_modules/
-27
View File
@@ -1,27 +0,0 @@
# IMPORTANT: run from root of monolithic repo
FROM ubuntu
WORKDIR /app
# The global package.json only contains build dependencies
COPY ./package.json .
COPY ./yarn.lock .
# copy the source coded needed for all dependencies
COPY ./packages/core packages/core
COPY ./packages/api packages/api
# run and compile the core package
WORKDIR /app/packages/core
# todo: might not need this and just do from level higher
RUN yarn install
WORKDIR /app/packages/api
RUN yarn install --production
RUN yarn build
CMD ["yarn", "start"]
# docker build -t talksik/nirvana-api:1.0
# docker run -p 5000:8080 -d
+1 -1
View File
@@ -6,7 +6,7 @@
"scripts": {
"dev": "NODE_ENV=development nodemon",
"start": "node dist/index.js",
"gcp-build": "tsc -p .",
"build": "tsc -p .",
"start:dev": "ts-node index.ts",
"production": "NODE_ENV=production nodemon"
},