Skip to content

Commit

Permalink
fixed pnpm install
Browse files Browse the repository at this point in the history
  • Loading branch information
H3rmt committed Mar 19, 2024
1 parent 2dbb030 commit 9b2b64e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ COPY migrations/ ./migrations
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o ./LocalFileSharing

FROM node:alpine AS js-base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY package.json pnpm-lock.yaml ./
RUN pnpm install
COPY astro.config.mjs tailwind.config.cjs tsconfig.json ./
COPY public/ ./public
COPY src/ ./src
COPY info.json ./info.json
RUN npm run build
RUN pnpm run build

COPY --from=build-stage /app/LocalFileSharing ./LocalFileSharing

Expand Down

0 comments on commit 9b2b64e

Please sign in to comment.