diff --git a/apps/backend/Dockerfile b/apps/backend/Dockerfile index 292ed32d..dda55238 100644 --- a/apps/backend/Dockerfile +++ b/apps/backend/Dockerfile @@ -28,10 +28,12 @@ WORKDIR /app # RUN mkdir ~/.fonts/ && \ # wget https://github.com/samuelngs/apple-emoji-linux/releases/download/ios-15.4/AppleColorEmoji.ttf -O ~/.fonts/AppleColorEmoji.ttf -COPY package.json /app/ +COPY ./package.json /app RUN npm install --frozen-lockfile -COPY ./ /app/ +COPY . /app ENV PORT 3002 + EXPOSE 3002 -CMD ["npm", "start"] \ No newline at end of file + +CMD ["node", "server.js"] \ No newline at end of file diff --git a/apps/dashboard/Dockerfile b/apps/dashboard/Dockerfile index 7df479b5..6e30dc87 100644 --- a/apps/dashboard/Dockerfile +++ b/apps/dashboard/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine AS builder +FROM node:18-alpine WORKDIR /app @@ -30,13 +30,6 @@ RUN pnpm i RUN pnpm build RUN pnpm prune --production -FROM node:18-alpine -WORKDIR /app/apps/dashboard - -COPY --from=builder /app/apps/dashboard/build build/ -COPY --from=builder /app/apps/dashboard/node_modules node_modules/ -COPY package.json . - EXPOSE 5000 ENV NODE_ENV=production diff --git a/turbo.json b/turbo.json index 0327963a..b77aba33 100644 --- a/turbo.json +++ b/turbo.json @@ -1,7 +1,7 @@ { "$schema": "https://turbo.build/schema.json", + "globalEnv": ["IS_SELFHOSTED"], "pipeline": { - "globalEnv": ["IS_SELFHOSTED"], "build": { "dependsOn": ["^build"], "outputs": [".next/**", "!.next/cache/**", ".svelte-kit/**", ".vercel/**"]