Skip to content

Commit 68b3fa2

Browse files
committed
refactor: update dockerfile
1 parent 650294e commit 68b3fa2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ RUN apt-get update && rm -rf /var/lib/apt/lists/*
1313
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
1414

1515
# Deploy only the dokploy app
16-
1716
ENV NODE_ENV=production
1817
RUN 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

2222
FROM base AS dokploy
2323
WORKDIR /app
@@ -27,7 +27,7 @@ ENV NODE_ENV=production
2727

2828
# Copy only the necessary files
2929
COPY --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

0 commit comments

Comments
 (0)