Skip to content
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

Fix chown #180

Merged
merged 1 commit into from
Nov 30, 2024
Merged

Fix chown #180

merged 1 commit into from
Nov 30, 2024

Conversation

masutaka
Copy link

Dockerfile:

FROM floryn90/hugo:0.139.3-onbuild AS hugo

FROM nginx
COPY --from=hugo /target /usr/share/nginx/html

Error:

$ docker build .
[+] Building 2.6s (12/14)                                                                                                                                                 docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                                                                      0.0s
 => => transferring dockerfile: 176B                                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/nginx:latest                                                                                                                           2.3s
 => [internal] load metadata for docker.io/floryn90/hugo:0.139.3-onbuild                                                                                                                  1.3s
 => [auth] library/nginx:pull token for registry-1.docker.io                                                                                                                              0.0s
 => [auth] floryn90/hugo:pull token for registry-1.docker.io                                                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                                                                         0.0s
 => => transferring context: 2B                                                                                                                                                           0.0s
 => [internal] load build context                                                                                                                                                         0.0s
 => => transferring context: 887.09kB                                                                                                                                                     0.0s
 => CANCELED [stage-1 1/2] FROM docker.io/library/nginx:latest@sha256:0c86dddac19f2ce4fd716ac58c0fd87bf69bfd4edabfd6971fb885bafd12a00b                                                    0.2s
 => => resolve docker.io/library/nginx:latest@sha256:0c86dddac19f2ce4fd716ac58c0fd87bf69bfd4edabfd6971fb885bafd12a00b                                                                     0.0s
 => => sha256:55086192e054463335b6aec1e60c74e23bd397dc1bef3890ca05de0b98247684 8.73kB / 8.73kB                                                                                            0.0s
 => => sha256:6d29a096dd42e5e003949f934fa6b1a3ec8e076dd8cfc2a85a4e750a3639bf7a 0B / 29.16MB                                                                                               0.2s
 => => sha256:d3b659122fdd8af9db9df7103eb3c13f666ff0107405e8c4e120f9ab11d31f09 0B / 40.44MB                                                                                               0.2s
 => => sha256:40413bf9ff2834e5e8c23cf0d97fc46ecd797375a8357f1599db99fbca90afa0 0B / 628B                                                                                                  0.2s
 => => sha256:0c86dddac19f2ce4fd716ac58c0fd87bf69bfd4edabfd6971fb885bafd12a00b 10.27kB / 10.27kB                                                                                          0.0s
 => => sha256:8052db262d55889066d3c3fa21abd10ece0a5bcc6af0b9ec6e8192ead2552672 2.30kB / 2.30kB                                                                                            0.0s
 => CACHED [hugo 1/1] FROM docker.io/floryn90/hugo:0.139.3-onbuild@sha256:07e32ca2c9fcd7a9e6ee6d3c192b4390ed2342eebe8816ee7f23e8ebf79a10e4                                                0.0s
 => [hugo 2/1] COPY . /src                                                                                                                                                                0.0s
 => [hugo 3/1] WORKDIR /src                                                                                                                                                               0.0s
 => ERROR [hugo 4/1] RUN chown -R hugoȘhugo /src /target                                                                                                                                  0.1s
------
 > [hugo 4/1] RUN chown -R hugoȘhugo /src /target:
0.105 chown: unknown user hugoȘhugo
------
Dockerfile:1
--------------------
   1 | >>> FROM floryn90/hugo:0.139.3-onbuild AS hugo
   2 |
   3 |     FROM nginx
--------------------
ERROR: failed to solve: process "/bin/sh -c chown -R hugoȘhugo /src /target" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/vijs7yrwp8zi399qqto0jg2r7

Copy link
Owner

@floryn90 floryn90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was a typo! Thank you for your first PR!

@floryn90 floryn90 merged commit b13d6ba into floryn90:master Nov 30, 2024
0 of 2 checks passed
@masutaka masutaka deleted the fix-chown branch December 1, 2024 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants