attempted docker file

This commit is contained in:
talksik
2022-06-03 09:01:40 -07:00
parent 296c044ee4
commit 13efe5e951
6 changed files with 48 additions and 27 deletions
-27
View File
@@ -1,27 +0,0 @@
# 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