mirror of
https://github.com/litruv/DAdmin.git
synced 2026-07-25 19:26:12 +10:00
Docker support
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
FROM node:slim
|
||||||
|
# WORKDIR specifies the directory our
|
||||||
|
# application's code will live within
|
||||||
|
WORKDIR /app
|
||||||
|
# We copy our package.json file to our
|
||||||
|
# app directory
|
||||||
|
COPY package.json /app
|
||||||
|
# We then run npm install to install
|
||||||
|
# express for our application
|
||||||
|
RUN npm install
|
||||||
|
# We then copy the rest of our application
|
||||||
|
# to the app direcoty
|
||||||
|
COPY . /app
|
||||||
|
# We start our application by calling
|
||||||
|
# npm start.
|
||||||
|
CMD ["npm", "start"]
|
||||||
Reference in New Issue
Block a user