Copy .yarn folder into docker container
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
f09b8c893d
commit
ab073fe7ec
@ -4,8 +4,10 @@ RUN mkdir -p /app
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/app/"]
|
COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/app/"]
|
||||||
|
COPY [".yarn", "/app/.yarn"]
|
||||||
COPY ["src", "/app/src"]
|
COPY ["src", "/app/src"]
|
||||||
|
|
||||||
|
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
@ -19,6 +21,7 @@ WORKDIR /app
|
|||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/usr/src/app/"]
|
COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/usr/src/app/"]
|
||||||
|
COPY [".yarn", "/app/.yarn"]
|
||||||
|
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user