-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
02e6b8a
commit d088b07
Showing
5 changed files
with
7,899 additions
and
19 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,18 +1,25 @@ | ||
FROM node:20.12.0-alpine3.19 | ||
|
||
WORKDIR /usr/src/app | ||
# Install pnpm globally | ||
RUN npm install -g pnpm | ||
|
||
WORKDIR /usr/home/plura | ||
|
||
# Copy necessary files for dependencies and build | ||
COPY ./package.json ./package.json | ||
COPY ./package-lock.json ./package-lock.json | ||
COPY ./pnpm-lock.yaml ./pnpm-lock.yaml | ||
COPY ./turbo.json ./turbo.json | ||
COPY ./tsconfig.json ./tsconfig.json | ||
|
||
COPY apps ./apps | ||
COPY packages ./packages | ||
|
||
RUN npm install | ||
# Install dependencies using pnpm | ||
RUN pnpm install --frozen-lockfile | ||
|
||
RUN npm run build | ||
|
||
CMD ["npm", "start"] | ||
# Build the application | ||
RUN pnpm run build | ||
# Expose ports | ||
EXPOSE 3000 | ||
# Start the application | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
FROM node:20.12.0-alpine3.19 | ||
|
||
WORKDIR /usr/src/app | ||
WORKDIR /usr/home/plura | ||
|
||
COPY package.json package-lock.json turbo.json tsconfig.json ./ | ||
|
||
COPY apps ./apps | ||
COPY packages ./packages | ||
RUN pnpm install | ||
|
||
RUN npm install | ||
RUN pnpm run build | ||
|
||
RUN npm run build | ||
EXPOSE 3001 | ||
|
||
WORKDIR /usr/src/app/apps/www | ||
|
||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ | |
"dev": "turbo dev", | ||
"lint": "turbo lint", | ||
"format": "prettier --write \"**/*.{ts,tsx,md}\"", | ||
"start": "cd ./apps/api && npm run start" | ||
"plura-api": "cd ./apps/api && pnpm run start", | ||
"plura-web": "cd ./apps/www && pnpm run start" | ||
}, | ||
"devDependencies": { | ||
"prettier": "^3.2.5", | ||
|
@@ -18,6 +19,8 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"hono": "^4.6.9" | ||
"api": "^6.1.2", | ||
"hono": "^4.6.9", | ||
"next": "15.0.2" | ||
} | ||
} |
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.