h4cker/docker-and-k8s-security/docker/Dockerfile.non-root
2021-04-11 13:33:39 -04:00

16 lines
No EOL
213 B
Docker

# Base Image
FROM node:12-slim
WORKDIR /usr/src/app
# Install Dependencies
COPY package*.json ./
RUN npm install
# Copy in Application
COPY . .
# Set User to Non-Root
USER node
# Run Server
CMD [ "server.js" ]