add store dir

This commit is contained in:
Thomas Ruoff
2021-03-07 00:19:24 +01:00
parent c775e6d68d
commit 444ba20385
2 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
FROM node:14-alpine AS builder
FROM node:14-alpine
MAINTAINER Thomas Ruoff <thomasruoff@gmail.com>
RUN apk add --no-cache texlive texmf-dist
@@ -10,6 +10,9 @@ COPY --chown=1000:1000 . /home/node
WORKDIR /home/node
RUN npm ci && npm run build
ENV JSON_STORE=/pdfer-store
VOLUME /pdfer-store
EXPOSE 3000
CMD npm run start

View File

@@ -8,7 +8,7 @@
"type-check": "tsc",
"format": "prettier --write **/*.{ts,tsx,json}",
"docker:build": "docker build . -t pdfer",
"docker:run": "docker run -p 3000:3000 pdfer"
"docker:run": "docker run -v ./pdfer-store:/pdfer-store -p 3000:3000 pdfer"
},
"dependencies": {
"@tailwindcss/forms": "^0.2.1",