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
|
FROM git.webdeploy.it/webdeploy/yarn AS build
|
||||||
|
|
||||||
WORKDIR /usr
|
WORKDIR /usr
|
||||||
COPY .yarnrc.yml ./
|
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
COPY yarn.lock ./
|
COPY package-lock.json ./
|
||||||
RUN yarn install --immutable
|
RUN npm ci
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
FROM git.webdeploy.it/webdeploy/yarn
|
FROM git.webdeploy.it/webdeploy/yarn
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY .yarnrc.yml ./
|
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
COPY yarn.lock ./
|
COPY package-lock.json ./
|
||||||
RUN yarn install --immutable
|
RUN npm ci
|
||||||
COPY --from=build /usr/build /app
|
COPY --from=build /usr/build /app
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
Loading…
Reference in a new issue