cleanup and start docker file
This commit is contained in:
+27
@@ -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
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user