mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-06 03:15:34 +01:00
refactor: rename node
to typescript
This commit is contained in:
parent
5f14dba7ad
commit
022315edd3
5 changed files with 7 additions and 7 deletions
3
templates/typescript/.yarnrc.twig
Normal file
3
templates/typescript/.yarnrc.twig
Normal file
|
@ -0,0 +1,3 @@
|
|||
# {{ managedText | raw }}
|
||||
|
||||
--modules-folder /node_modules
|
20
templates/typescript/Dockerfile.twig
Normal file
20
templates/typescript/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