Update Dockerfile using our image and for yarn latest usage
This commit is contained in:
parent
97c1cbe74d
commit
d01eae92d5
3 changed files with 3417 additions and 1795 deletions
1
frontend/.yarnrc.yml
Normal file
1
frontend/.yarnrc.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
nodeLinker: node-modules
|
|
@ -1,18 +1,20 @@
|
||||||
FROM node:18 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 yarn.lock ./
|
||||||
RUN yarn install --frozen-lockfile
|
RUN yarn install --immutable
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
FROM node:18-alpine3.16
|
FROM git.webdeploy.it/webdeploy/yarn
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
COPY .yarnrc.yml ./
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
COPY yarn.lock ./
|
COPY yarn.lock ./
|
||||||
RUN yarn install --frozen-lockfile
|
RUN yarn install --immutable
|
||||||
COPY --from=build /usr/build /app
|
COPY --from=build /usr/build /app
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
5201
frontend/yarn.lock
5201
frontend/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue