Skip to content

Commit

Permalink
Fix: fedora docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Oct 26, 2023
1 parent 1c77ca2 commit 972f16b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile-fedora
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ENV PATH="${PATH}:/opt/node/bin"
COPY package.json pnpm-lock.yaml ./
RUN npm install -g npm@latest
RUN corepack enable pnpm
RUN pnpm i --frozen-lockfile
COPY . ./
RUN pnpm build

Expand All @@ -46,12 +47,12 @@ COPY --from=builder /misskey/built ./built
COPY --from=builder /opt/node /opt/node
COPY . ./

RUN npm install -g npm@latest
RUN corepack enable pnpm

# Add more PATHs to the PATH
ENV PATH="${PATH}:/opt/node/bin"

RUN npm install -g npm@latest
RUN corepack enable pnpm

ENV NODE_ENV=production
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["pnpm", "start"]

0 comments on commit 972f16b

Please sign in to comment.