[GH-ISSUE #22] Docker deployment missing dist folder #2

Open
opened 2026-03-02 11:44:02 +03:00 by kerem · 1 comment
Owner

Originally created by @SKJoy on GitHub (Mar 1, 2026).
Original GitHub issue: https://github.com/jhd3197/ServerKit/issues/22

Docker file = frontend/Dockerfile

/ServerKit # docker compose up -d
[+] Building 4.0s (7/8)                                                                                                          
 => [internal] load build definition from Dockerfile                                                                        0.1s
 => => transferring dockerfile: 810B                                                                                        0.0s
 => [internal] load metadata for docker.io/library/nginx:alpine                                                             3.3s
 => [internal] load .dockerignore                                                                                           0.0s
 => => transferring context: 184B                                                                                           0.0s
 => CANCELED [1/4] FROM docker.io/library/nginx:alpine@sha256:1d13701a5f9f3fb01aaa88cef2344d65b6b5bf6b7d9fa4cf0dca557a8d77  0.4s
 => => resolve docker.io/library/nginx:alpine@sha256:1d13701a5f9f3fb01aaa88cef2344d65b6b5bf6b7d9fa4cf0dca557a8d7702ba       0.2s
 => => sha256:1d13701a5f9f3fb01aaa88cef2344d65b6b5bf6b7d9fa4cf0dca557a8d7702ba 10.33kB / 10.33kB                            0.0s
 => => sha256:c032460d1fd73978317479ba23c37bcb57d93156cab122eb3c54b8e4bdc292fa 2.50kB / 2.50kB                              0.0s
 => => sha256:b76de378d57272a1dd9091a05dd548a3639dfb792ebdbf95d06704d2950afdea 11.65kB / 11.65kB                            0.0s
 => [internal] load build context                                                                                           0.1s
 => => transferring context: 4.74kB                                                                                         0.0s
 => CACHED [2/4] COPY nginx.conf /etc/nginx/conf.d/default.conf                                                             0.0s
 => ERROR [3/4] COPY dist /usr/share/nginx/html                                                                             0.0s
------
 > [3/4] COPY dist /usr/share/nginx/html:
------
failed to solve: failed to compute cache key: failed to calculate checksum of ref d1a6ccb8-83b9-4900-bb0b-5a57030e5862::6bbe352pazqbicflhpg1bfp3o: "/dist": not found
Originally created by @SKJoy on GitHub (Mar 1, 2026). Original GitHub issue: https://github.com/jhd3197/ServerKit/issues/22 Docker file = `frontend/Dockerfile` ``` /ServerKit # docker compose up -d [+] Building 4.0s (7/8) => [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 810B 0.0s => [internal] load metadata for docker.io/library/nginx:alpine 3.3s => [internal] load .dockerignore 0.0s => => transferring context: 184B 0.0s => CANCELED [1/4] FROM docker.io/library/nginx:alpine@sha256:1d13701a5f9f3fb01aaa88cef2344d65b6b5bf6b7d9fa4cf0dca557a8d77 0.4s => => resolve docker.io/library/nginx:alpine@sha256:1d13701a5f9f3fb01aaa88cef2344d65b6b5bf6b7d9fa4cf0dca557a8d7702ba 0.2s => => sha256:1d13701a5f9f3fb01aaa88cef2344d65b6b5bf6b7d9fa4cf0dca557a8d7702ba 10.33kB / 10.33kB 0.0s => => sha256:c032460d1fd73978317479ba23c37bcb57d93156cab122eb3c54b8e4bdc292fa 2.50kB / 2.50kB 0.0s => => sha256:b76de378d57272a1dd9091a05dd548a3639dfb792ebdbf95d06704d2950afdea 11.65kB / 11.65kB 0.0s => [internal] load build context 0.1s => => transferring context: 4.74kB 0.0s => CACHED [2/4] COPY nginx.conf /etc/nginx/conf.d/default.conf 0.0s => ERROR [3/4] COPY dist /usr/share/nginx/html 0.0s ------ > [3/4] COPY dist /usr/share/nginx/html: ------ failed to solve: failed to compute cache key: failed to calculate checksum of ref d1a6ccb8-83b9-4900-bb0b-5a57030e5862::6bbe352pazqbicflhpg1bfp3o: "/dist": not found ```
Author
Owner

@jhd3197 commented on GitHub (Mar 1, 2026):

Hey @SKJoy! Can you try again? I recently pushed a fix for the Docker build. That said I honestly dont really recommend running ServerKit through Docker, the latest patch fixes the build but a lot of features wont work since a container isnt a real Linux VM. Things like firewall management, service control, cron jobs, SSL certificates, FTP, and system user management all need direct access to the OS that a container cant provide. You'll get the best experience running it directly on a VPS.

<!-- gh-comment-id:3980894705 --> @jhd3197 commented on GitHub (Mar 1, 2026): Hey @SKJoy! Can you try again? I recently pushed a fix for the Docker build. That said I honestly dont really recommend running ServerKit through Docker, the latest patch fixes the build but a lot of features wont work since a container isnt a real Linux VM. Things like firewall management, service control, cron jobs, SSL certificates, FTP, and system user management all need direct access to the OS that a container cant provide. You'll get the best experience running it directly on a VPS.
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ServerKit#2
No description provided.