Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SkidGod4444 committed Nov 5, 2024
1 parent 02e6b8a commit d088b07
Show file tree
Hide file tree
Showing 5 changed files with 7,899 additions and 19 deletions.
19 changes: 13 additions & 6 deletions Dockerfile
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"]
14 changes: 5 additions & 9 deletions apps/www/Dockerfile
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"]
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -18,6 +19,8 @@
},
"packageManager": "[email protected]",
"dependencies": {
"hono": "^4.6.9"
"api": "^6.1.2",
"hono": "^4.6.9",
"next": "15.0.2"
}
}
2 changes: 0 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
"generate:component": "turbo gen react-component"
},
"devDependencies": {
"@repo/eslint-config": "*",
"@repo/typescript-config": "*",
"@turbo/gen": "^1.12.4",
"@types/node": "^20.11.24",
"@types/eslint": "^8.56.5",
Expand Down
Loading

0 comments on commit d088b07

Please sign in to comment.