forked from amethystnetwork-dev/Incognito
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b23dfb
commit 2e249ed
Showing
15 changed files
with
1,174 additions
and
855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
FROM node:18-alpine | ||
FROM node:20-alpine AS base | ||
|
||
ENV NODE_ENV=production | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
|
||
WORKDIR /app | ||
COPY ["package.json", "pnpm-lock.yaml", "./"] | ||
COPY ./static ./static | ||
COPY ./src/ ./src | ||
|
||
COPY package*.json . | ||
|
||
RUN npm install | ||
RUN corepack enable | ||
|
||
COPY static static/ | ||
COPY src/*.js src/ | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["npm", "start"] | ||
CMD ["pnpm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.