prepare for docker hosting
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
node_modules
|
||||||
|
.env
|
||||||
|
.env.example
|
||||||
|
npm-debug.log
|
||||||
|
out
|
||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
FROM node:18
|
||||||
|
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm ci --omit=dev
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm run build
|
||||||
|
EXPOSE 3001
|
||||||
|
|
||||||
|
CMD [ "npm", "run", "startServer"]
|
||||||
Reference in New Issue
Block a user