build: dockerized lustpress and add .dockerignore

This commit is contained in:
sinkaroid
2023-04-18 11:11:42 +07:00
parent a785a3045c
commit 7242a81c69
2 changed files with 11 additions and 0 deletions

2
.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
node_modules
npm-debug.log

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM node:latest
WORKDIR /srv/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["node", "build/src/index.js"]