refactor(fractal): reorganise templates

Refs: OD-44
This commit is contained in:
Oliver Davies 2023-09-25 00:17:41 +01:00
parent b6b6e86558
commit cfbdeb375e
13 changed files with 235 additions and 11 deletions

View file

@ -0,0 +1,20 @@
FROM node:{{ node.version }} AS base
WORKDIR {{ project_root }}
RUN mkdir /node_modules \
&& chown node:node -R {{ project_root }} /node_modules
COPY --chown=node:node package*.json *yarn* {{ project_root }}
USER node
################################################################################
FROM base AS build
RUN yarn install --frozen-lockfile
COPY --chown=node:node . .
CMD ["bash"]