This commit is contained in:
parent
12e3990bc2
commit
ca4c7e0b10
1 changed files with 4 additions and 6 deletions
|
@ -1,20 +1,18 @@
|
|||
FROM git.webdeploy.it/webdeploy/yarn AS build
|
||||
|
||||
WORKDIR /usr
|
||||
COPY .yarnrc.yml ./
|
||||
COPY package.json ./
|
||||
COPY yarn.lock ./
|
||||
RUN yarn install --immutable
|
||||
COPY package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY . ./
|
||||
RUN yarn build
|
||||
|
||||
FROM git.webdeploy.it/webdeploy/yarn
|
||||
|
||||
WORKDIR /app
|
||||
COPY .yarnrc.yml ./
|
||||
COPY package.json ./
|
||||
COPY yarn.lock ./
|
||||
RUN yarn install --immutable
|
||||
COPY package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY --from=build /usr/build /app
|
||||
|
||||
EXPOSE 8000
|
||||
|
|
Loading…
Reference in a new issue