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
|
```dockerfile
|
||||||
# Run as a non-privileged user
|
# Run as a non-privileged user
|
||||||
FROM node:18-alpine
|
FROM node:18
|
||||||
RUN useradd -ms /bin/sh -u 1001 app
|
RUN useradd -ms /bin/sh -u 1001 app
|
||||||
USER app
|
USER app
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package.lock .
|
COPY package.json package-lock.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Copy source files into application directory
|
# 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