cleanup and start docker file

This commit is contained in:
talksik
2022-06-03 08:28:32 -07:00
parent 279da4333e
commit 296c044ee4
4 changed files with 28 additions and 2 deletions
+27
View File
@@ -0,0 +1,27 @@
# IMPORTANT: run from root of monolithic repo
FROM ubuntu
WORKDIR /app
COPY ./package.json .
COPY ./packages/api/package.json ./packages/api/
# copy the core private package
COPY ./packages/core ./packages/core
COPY ./packages/core/package.json ./packages/core/
# 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
# copy all of the source code
COPY ./dist ./packages/api
RUN yarn install --production
# steps
# 1. compile all dependencies
# add the
View File
+1
View File
@@ -15,6 +15,7 @@
"typescript": "^4.6.2"
},
"dependencies": {
"@nirvana/core": "*",
"axios": "^0.26.1",
"cors": "^2.8.5",
"dotenv": "^16.0.0",
@@ -106,8 +106,6 @@ export function CommunicationsProvider({ children }: { children: React.ReactNode
return (
<CommunicationsContext.Provider value={{ userDeviceSelections }}>
<audio autoPlay controls ref={localAudioRef} />
{children}
</CommunicationsContext.Provider>
);