ci: fix issue with pnpm installation (#1160)
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -24,25 +24,16 @@ WORKDIR /app
|
|||||||
COPY .gitignore .gitignore
|
COPY .gitignore .gitignore
|
||||||
|
|
||||||
COPY --from=builder /app/tasks-out/json/ .
|
COPY --from=builder /app/tasks-out/json/ .
|
||||||
COPY --from=builder /app/tasks-out/pnpm-lock.yaml ./pnpm-lock.yaml
|
|
||||||
RUN corepack enable pnpm && pnpm install
|
|
||||||
|
|
||||||
COPY --from=builder /app/websocket-out/json/ .
|
COPY --from=builder /app/websocket-out/json/ .
|
||||||
COPY --from=builder /app/websocket-out/pnpm-lock.yaml ./pnpm-lock.yaml
|
|
||||||
RUN corepack enable pnpm && pnpm install
|
|
||||||
|
|
||||||
COPY --from=builder /app/migration-out/json/ .
|
COPY --from=builder /app/migration-out/json/ .
|
||||||
COPY --from=builder /app/migration-out/pnpm-lock.yaml ./pnpm-lock.yaml
|
|
||||||
RUN corepack enable pnpm && pnpm install
|
|
||||||
|
|
||||||
COPY --from=builder /app/cli-out/json/ .
|
COPY --from=builder /app/cli-out/json/ .
|
||||||
COPY --from=builder /app/cli-out/pnpm-lock.yaml ./pnpm-lock.yaml
|
|
||||||
RUN corepack enable pnpm && pnpm install
|
|
||||||
|
|
||||||
COPY --from=builder /app/next-out/json/ .
|
COPY --from=builder /app/next-out/json/ .
|
||||||
COPY --from=builder /app/next-out/pnpm-lock.yaml ./pnpm-lock.yaml
|
COPY --from=builder /app/pnpm-lock.yaml ./pnpm-lock.yaml
|
||||||
RUN corepack enable pnpm && pnpm install
|
|
||||||
|
|
||||||
|
# Uses the lockfile to install the dependencies
|
||||||
|
RUN corepack enable pnpm && pnpm install --recursive --frozen-lockfile
|
||||||
|
|
||||||
|
# Install sharp for image optimization
|
||||||
RUN corepack enable pnpm && pnpm install sharp -w
|
RUN corepack enable pnpm && pnpm install sharp -w
|
||||||
|
|
||||||
# Build the project
|
# Build the project
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
docker run -p 3000:3000 -p 3001:3001 -e AUTH_SECRET='secrets' homarr:latest
|
docker run -p 7575:7575 -e AUTH_SECRET='secrets' homarr:latest
|
||||||
Reference in New Issue
Block a user