Update Dockerfiel
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Alessio Davoli 2023-12-12 18:21:19 +01:00
parent 12e3990bc2
commit ca4c7e0b10

View file

@ -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