mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 09:12:02 +10:00
🚀 Render.com Dockerfile with java for option open sign pdf support
This commit is contained in:
30
apps/web/pages/Dockerfile
Normal file
30
apps/web/pages/Dockerfile
Normal file
@ -0,0 +1,30 @@
|
||||
# Docker config for render.com
|
||||
# Be sure to add an .env config to your docker web service
|
||||
FROM node:19.5.0-alpine
|
||||
RUN apk add --no-cache openjdk11
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Inserted from render.com ENV Group
|
||||
ARG DATABASE_URL
|
||||
ARG MAIL_FROM
|
||||
ARG NEXT_PUBLIC_WEBAPP_URL
|
||||
ARG NEXTAUTH_SECRET
|
||||
ARG NEXTAUTH_URL
|
||||
ARG SENDGRID_API_KEY
|
||||
|
||||
# Fill docker ENV variables with render.com ENV Group - BUILD-TIME
|
||||
ENV DATABASE_URL=$DATABASE_URL \
|
||||
MAIL_FROM=$ \
|
||||
NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
|
||||
NEXTAUTH_SECRET=&NEXTAUTH_SECRET \
|
||||
NEXTAUTH_URL=$NEXTAUTH_URL \
|
||||
SENDGRID_API_KEY=$SENDGRID_API_KEY
|
||||
|
||||
COPY . /app
|
||||
RUN npm run build
|
||||
|
||||
# No runtime ENV Variables set so far besides ENV
|
||||
ENV NODE_ENV production
|
||||
EXPOSE 3000
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user