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

Errors in docs: compose/file-watch example #20063

Open
1 task done
a-k-kord opened this issue May 19, 2024 · 0 comments
Open
1 task done

Errors in docs: compose/file-watch example #20063

a-k-kord opened this issue May 19, 2024 · 0 comments
Labels
area/compose Relates to docker-compose.yml spec or docker-compose binary

Comments

@a-k-kord
Copy link

a-k-kord commented May 19, 2024

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

  1. In the example:
    FROM node:18-alpine
    RUN useradd -ms /bin/sh -u 1001 app

Problem: alpine doesn't have useradd command

  1. this line cases error and there's no package.lock file
    COPY package.json package.lock .

error: When using COPY with more than one source file, the destination must be a directory and end with a / or a \

Location

https://docs.docker.com/compose/file-watch/

Suggestion

  1. Fix:
    RUN addgroup -g 1001 -S app && adduser -u 1001 -S app -G app

  2. Fix:
    COPY COPY package.json .

@a-k-kord a-k-kord added the status/triage Needs triage label May 19, 2024
@a-k-kord a-k-kord changed the title Errors in docs Errors in docs: compose/file-watch example May 19, 2024
@aevesdocker aevesdocker added area/compose Relates to docker-compose.yml spec or docker-compose binary and removed status/triage Needs triage labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compose Relates to docker-compose.yml spec or docker-compose binary
Projects
None yet
Development

No branches or pull requests

2 participants