mirror of
https://github.com/The-Art-of-Hacking/h4cker
synced 2024-11-25 12:20:18 +00:00
16 lines
No EOL
213 B
Docker
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" ] |