mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2024-12-18 20:24:26 -05:00
16 lines
213 B
Docker
16 lines
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" ]
|