Update Dockerfile using our image and for yarn latest usage

This commit is contained in:
Alessio Davoli 2023-09-25 17:34:41 +02:00
parent 97c1cbe74d
commit d01eae92d5
3 changed files with 3417 additions and 1795 deletions

1
frontend/.yarnrc.yml Normal file
View file

@ -0,0 +1 @@
nodeLinker: node-modules

View file

@ -1,18 +1,20 @@
FROM node:18 AS build
FROM git.webdeploy.it/webdeploy/yarn AS build
WORKDIR /usr
COPY .yarnrc.yml ./
COPY package.json ./
COPY yarn.lock ./
RUN yarn install --frozen-lockfile
RUN yarn install --immutable
COPY . ./
RUN yarn build
FROM node:18-alpine3.16
FROM git.webdeploy.it/webdeploy/yarn
WORKDIR /app
COPY .yarnrc.yml ./
COPY package.json ./
COPY yarn.lock ./
RUN yarn install --frozen-lockfile
RUN yarn install --immutable
COPY --from=build /usr/build /app
EXPOSE 8000

File diff suppressed because it is too large Load diff