docs icon indicating copy to clipboard operation
docs copied to clipboard

Errors in docs: compose/file-watch example

Open a-k-kord opened this issue 1 year ago • 0 comments

Is this a docs issue?

  • [X] 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 avatar May 19 '24 19:05 a-k-kord