mirror of
https://github.com/The-Art-of-Hacking/h4cker
synced 2024-11-29 22:20:24 +00: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" ]
|