refactor: iupdate

This commit is contained in:
Mauricio Siu
2024-10-27 22:09:15 -06:00
parent c862207381
commit fd1f028077
4 changed files with 6 additions and 9 deletions

View File

@@ -11,16 +11,13 @@ COPY . .
# Install dependencies
COPY package.json pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
# Deploy only the dokploy app
ENV NODE_ENV=production
RUN pnpm run build
FROM base AS dokploy
WORKDIR /app
# Set production
ENV NODE_ENV=production
@@ -32,4 +29,4 @@ COPY --from=build /app/node_modules ./node_modules
EXPOSE 3000
CMD HOSTNAME=0.0.0.0 && pnpm start
CMD ["pnpm", "start"]