-
-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dockerfile does not complete, saying "Docker Deployed" #155
Comments
The dockerfile looks good
|
There is an error during docker deployment, but this log does not see the error message |
We use the native docker builder, so surely there is some error or suddenly we are not showing some important log that shows the error but for that I would need the following:
|
@hubingkang Did you find a solution for this? I face the same issue at |
@hubingkang Can you share the dockerfile and the project you are building? |
@thenglong @Siumauricio I didn't use the dockerfile from pnpm
Make sure you have the "package.json pnpm-lock.yaml.npmrc" files. If not, you'll get the same problem as above, but you won't see an error message. |
This is weird because I ran build dockerfile from pnpm instruction manually works but via Dokploy didn't. This is the line in Dockerfile that causes the problem in Dokploy
|
@hubingkang Shall we reopen this? |
Similarly, I successfully deployed it using docker directly on my computer |
It seems that the problem does not come from dokploy but from something external, checking very carefully in the logs locally it seems that it is something related to BuildKit that needs to be activated and comes from the dockerode library which we use to build the images when you use the Docker provider, according to investigating there seems to be an open issue about this, apocas/dockerode#601 A solution will be to remove the --mount=type=cache and use like this https://github.com/Dokploy/swarm-test/tree/dockerfile FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
COPY . /app
WORKDIR /app
FROM base AS prod-deps
RUN pnpm install --prod --frozen-lockfile
FROM base AS build
RUN pnpm install --frozen-lockfile
RUN pnpm run build
FROM base
COPY --from=prod-deps /app/node_modules /app/node_modules
EXPOSE 3000
CMD [ "pnpm", "start" ]
|
Since this is more of a dockerode issue, we can close it for now, when the issue is resolved we will update and the problem should go away, anyways there is a workaround for now |
To Reproduce
dockerfile does not complete, saying "Docker Deployed"
Current vs. Expected behavior
Complete all dockerfile steps
Provide environment information
Which area(s) are affected? (Select all that apply)
Docker
Additional context
Docker version 26.0.0, build 2ae903e
The text was updated successfully, but these errors were encountered: