Add a miniflare Dockerfile for fun

This commit is contained in:
Erisa A 2021-07-14 20:47:56 +01:00
parent dfd2712663
commit 80180ec488
No known key found for this signature in database
GPG key ID: D581704D7FC37F30
2 changed files with 15 additions and 1 deletions

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM node:14-alpine
WORKDIR /app
COPY package*.json .
ENV NODE_ENV=production
ENV WORKERLINKS_SECRET=default
RUN npm install -g miniflare
ENTRYPOINT ["miniflare"]
CMD ["index.js -k kv -b WORKERLINKS_SECRET=$WORKERLINKS_SECRET"]

View file

@ -13,9 +13,11 @@
}, },
"author": "Erisa A", "author": "Erisa A",
"license": "MIT", "license": "MIT",
"dependencies": {
"miniflare": "^1.1.0"
},
"devDependencies": { "devDependencies": {
"@cloudflare/wrangler": "^1.17.0", "@cloudflare/wrangler": "^1.17.0",
"miniflare": "^1.1.0",
"prettier": "^1.18.2" "prettier": "^1.18.2"
} }
} }