Skip to content

Commit

Permalink
update docker for using psql
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-hub committed Jul 16, 2020
1 parent 33a2505 commit 0f4cc45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
dist
node_modules
coverage
.env
.gitignore
renovate.json
README.md
LICENSE
/test.sqlite
*.sqlite
build
.github
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM node:13.10.1-alpine

EXPOSE 3000
ENV DB_PATH /mm/demo.db

RUN mkdir /mm
WORKDIR /mm
Expand All @@ -11,9 +9,9 @@ ADD package-lock.json .
RUN npm ci

ADD . .
RUN chmod 777 /mm/demo.db

RUN npm run postinstall
RUN npm run build
RUN npm db:migrate

CMD ["node", "dist/server.js"]

0 comments on commit 0f4cc45

Please sign in to comment.