File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ RUN apt-get update && rm -rf /var/lib/apt/lists/*
1313RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
1414
1515# Deploy only the dokploy app
16-
1716ENV NODE_ENV=production
1817RUN pnpm run build
1918
20- RUN cp -R /app/dist /prod/dist
19+ # Ensure /prod/dist exists
20+ RUN mkdir -p /prod/dist && cp -R /app/dist /prod/dist
2121
2222FROM base AS dokploy
2323WORKDIR /app
@@ -27,7 +27,7 @@ ENV NODE_ENV=production
2727
2828# Copy only the necessary files
2929COPY --from=build /prod/dist ./dist
30- COPY --from=build /prod /package.json ./package.json
31- COPY --from=build /prod /node_modules ./node_modules
30+ COPY --from=build /app /package.json ./package.json
31+ COPY --from=build /app /node_modules ./node_modules
3232
33- CMD HOSTNAME=0.0.0.0 && pnpm start
33+ CMD HOSTNAME=0.0.0.0 && pnpm start
You can’t perform that action at this time.
0 commit comments