mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-02 22:17:18 +01:00
Update dockerfile
This commit is contained in:
40
.dockerignore
Normal file
40
.dockerignore
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# dependencies
|
||||||
|
/node_modules
|
||||||
|
|
||||||
|
# testing
|
||||||
|
/coverage
|
||||||
|
|
||||||
|
# next.js
|
||||||
|
/.next/
|
||||||
|
/out/
|
||||||
|
|
||||||
|
# production
|
||||||
|
/build
|
||||||
|
|
||||||
|
# misc
|
||||||
|
.DS_Store
|
||||||
|
*.pem
|
||||||
|
|
||||||
|
# debug
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
||||||
|
# local env files
|
||||||
|
.env.local
|
||||||
|
.env.development.local
|
||||||
|
.env.test.local
|
||||||
|
.env.production.local
|
||||||
|
|
||||||
|
# typescript server
|
||||||
|
.log
|
||||||
|
|
||||||
|
#nextjs
|
||||||
|
.next
|
||||||
|
|
||||||
|
# vercel
|
||||||
|
.vercel
|
||||||
|
|
||||||
|
Dockerfile
|
||||||
|
.editorconfig
|
||||||
|
.tool-version
|
||||||
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
FROM node:14-alpine AS builder
|
||||||
|
MAINTAINER Thomas Ruoff <thomasruoff@gmail.com>
|
||||||
|
|
||||||
|
RUN apk add --no-cache texlive texmf-dist
|
||||||
|
|
||||||
|
USER 1000
|
||||||
|
|
||||||
|
COPY --chown=1000:1000 . /home/node
|
||||||
|
|
||||||
|
WORKDIR /home/node
|
||||||
|
RUN npm ci && npm run build
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
CMD npm run start
|
||||||
@@ -6,7 +6,9 @@
|
|||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"type-check": "tsc",
|
"type-check": "tsc",
|
||||||
"format": "prettier --write **/*.{ts,tsx,json}"
|
"format": "prettier --write **/*.{ts,tsx,json}",
|
||||||
|
"docker:build": "docker build . -t pdfer",
|
||||||
|
"docker:run": "docker run -p 3000:3000 pdfer"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tailwindcss/forms": "^0.2.1",
|
"@tailwindcss/forms": "^0.2.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user