ENGDOCS-2152 (#20378)

This commit is contained in:
Allie Sadler 2024-07-11 13:58:35 +01:00 committed by GitHub
parent 3a99e84975
commit a48d866945
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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.