mirror of https://github.com/docker/docs.git
ENGDOCS-2152 (#20378)
This commit is contained in:
parent
3a99e84975
commit
a48d866945
|
@ -54,13 +54,13 @@ by the configured user, use the `COPY --chown` flag:
|
|||
|
||||
```dockerfile
|
||||
# Run as a non-privileged user
|
||||
FROM node:18-alpine
|
||||
FROM node:18
|
||||
RUN useradd -ms /bin/sh -u 1001 app
|
||||
USER app
|
||||
|
||||
# Install dependencies
|
||||
WORKDIR /app
|
||||
COPY package.json package.lock .
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install
|
||||
|
||||
# Copy source files into application directory
|
||||
|
|
|
@ -1 +1 @@
|
|||
Deploy is an optional part of the Compose Specification. It is used to configure how services are deployed and managed in a Docker Swarm mode. Essentially, it provides a set of deployment specifications for managing the behavior of containers across different environments.
|
||||
Deploy is an optional part of the Compose Specification. It provides a set of deployment specifications for managing the behavior of containers across different environments.
|
Loading…
Reference in New Issue