Updates with Dockerfile and tweaks for db persistence

This commit is contained in:
Matthew Raymer
2023-09-10 08:50:26 -04:00
parent 160c0ceff7
commit bcb636c150
5 changed files with 64 additions and 59 deletions

View File

@@ -1,6 +1,6 @@
FROM node:18.17.1-alpine3.17
RUN mkdir -p /usr/src/app
RUN mkdir -p /usr/src/app/data
WORKDIR /usr/src/app
COPY package*.json ./
@@ -9,8 +9,9 @@ COPY .eslintrc.json ./
COPY src ./src
RUN npm install
RUN npm run build
EXPOSE 3000
CMD [ "npm", "start" ]
CMD [ "npm", "start" ]