mirror of
https://github.com/donavon04/DocuCenter.git
synced 2025-01-18 01:30:57 -07:00
added some stuff!
This commit is contained in:
parent
8af208a8f5
commit
629bd7e4f2
@ -1,7 +1,5 @@
|
||||
MONGODB_URI='mongodb://localhost:27017'
|
||||
MONGODB_NAME='docucenter'
|
||||
|
||||
NODE_ENV='development' #If set to production it will require https to function
|
||||
|
||||
JWT_SECRET='IjkAORBx^cLYpSb6Btz@te&vAJ3Pt*$z'
|
||||
|
||||
|
22
backend/Dockerfile
Normal file
22
backend/Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
# Use the official Node.js 14 image as the base image
|
||||
FROM node:21.4-alpine
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json to the working directory
|
||||
COPY package*.json ./
|
||||
|
||||
# Install project dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the project files to the working directory
|
||||
COPY . ./
|
||||
|
||||
# Expose port 3000 for the Node.js application
|
||||
EXPOSE 3000
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Start the Node.js application
|
||||
CMD [ "node", "server.js" ]
|
15
frontend/Dockerfile
Normal file
15
frontend/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM node:latest
|
||||
WORKDIR /app
|
||||
|
||||
# Copy .npmrc file to the container
|
||||
COPY .npmrc ./
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "node", "build" ]
|
@ -1,5 +0,0 @@
|
||||
TIPTAP_PRO_TOKEN='uCNZ0C3gFH2+0yWa5uSbw9oM+lcXMDwGkPEFudU4ONOKC2m/TH5weVx4lU2EEDpD'
|
||||
|
||||
AUTH_SECRET="txvHsSGbEuQ6j3I3YZEyXkVJnPTP/s5vdK4+OJ8sxQo=" # Added by `npx auth`. Read more: https://cli.authjs.dev
|
||||
|
||||
PUBLIC_BASE_URL='http://localhost:3000/api' #This is the address of the backend
|
Loading…
Reference in New Issue
Block a user