Skip to content

Commit

Permalink
425th Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Chen committed Feb 7, 2025
1 parent 1e47536 commit 47060c2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/registry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ ENV OPENAI_API_KEY=$OPENAI_API_KEY
ARG SECRET_KEY
ENV SECRET_KEY=$SECRET_KEY

ENV COREPACK_INTEGRITY_KEYS="0"
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable pnpm
RUN corepack use pnpm@9
RUN corepack use pnpm@9.x

RUN pnpm build

Expand All @@ -48,10 +49,11 @@ ENV NODE_ENV=production
ARG PORT
ENV PORT=$PORT

ENV COREPACK_INTEGRITY_KEYS="0"
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable pnpm
RUN corepack use pnpm@9
RUN corepack use pnpm@9.x

USER node
EXPOSE ${PORT}
Expand Down
6 changes: 4 additions & 2 deletions .github/registry/worker.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ ADD . .
ARG REDIS_URL
ENV REDIS_URL=$REDIS_URL

ENV COREPACK_INTEGRITY_KEYS="0"
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable pnpm
RUN corepack use pnpm@9
RUN corepack use pnpm@9.x

RUN pnpm build

Expand All @@ -22,10 +23,11 @@ COPY --from=base /usr/src/app/app/dist /usr/src/app/dist

ENV NODE_ENV=production

ENV COREPACK_INTEGRITY_KEYS="0"
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable pnpm
RUN corepack use pnpm@9
RUN corepack use pnpm@9.x

USER node
CMD [ "node", "/usr/src/app/dist/worker.js" ]
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ ADD . .
ENV MONGOMS_VERSION=7.0.11
ENV MONGOMS_DOWNLOAD_URL=https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian12-${MONGOMS_VERSION}.tgz

ENV COREPACK_INTEGRITY_KEYS="0"
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable pnpm
RUN corepack use pnpm@9
RUN corepack use pnpm@9.x

RUN apt-get update && \
apt-get install -y libcurl4

0 comments on commit 47060c2

Please sign in to comment.