refactor(fractal): reorganise templates
Refs: OD-44
This commit is contained in:
parent
b6b6e86558
commit
cfbdeb375e
13 changed files with 235 additions and 11 deletions
20
templates/fractal/Dockerfile.twig
Normal file
20
templates/fractal/Dockerfile.twig
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue