Skip to content

Commit a344fec

Browse files
committed
fix(CI): Fixes a corepack dependency on the Dockerfiles
1 parent b5c36b2 commit a344fec

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

client/Dockerfile.prod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ COPY .browserslistrc \
3030
.env.local \
3131
./
3232

33+
RUN corepack enable
34+
3335
RUN yarn install
3436

3537
RUN yarn build
@@ -52,6 +54,8 @@ COPY --from=build /app/package.json ./package.json
5254
COPY --from=build /app/index.js ./index.js
5355
COPY --from=build /app/.env.local ./.env.local
5456

57+
RUN corepack enable
58+
5559
USER nextjs
5660

5761
EXPOSE 3000

cms/Dockerfile.prod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ COPY .env \
3232
yarn.lock \
3333
./
3434

35+
RUN corepack enable
36+
3537
RUN yarn install
3638

3739
RUN yarn build
@@ -52,6 +54,8 @@ RUN adduser --system --uid 1001 strapi
5254

5355
COPY --from=build --chown=strapi:nodejs /app ./
5456

57+
RUN corepack enable
58+
5559
USER strapi
5660

5761
EXPOSE 1337

0 commit comments

Comments
 (0)