mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2024-12-21 04:16:10 +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" ]
|