mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
* Rename .github/PULL_REQUEST_TEMPLATE/PULL-REQUEST.md to .github/pull_request_template.md fix: Pull Request Template Location * documents -> docs * Update windows_install.md Fix: Docker hyperlink * Update linux_install.md Fix: Layout (step 6) * Rename docs/contributions/code_of_conduct.md to CODE_OF_CONDUCT.md fix: Code of Conduct location according to GitHub's Guide * Update CODE_OF_CONDUCT.md Update: Contact info * Update README.md Update: Code of Conduct hyperlink in TOC * Update CODE_OF_CONDUCT.md Update: Link to ReadMe * Update CONTRIBUTORS.md update: add new name to the list * Update and rename docs/contributions/contributor_guidelines.md to CONTRIBUTING.md fix: change location according to GitHub's standards * Delete CONTRIBUTORS.md delete: contributor.md from root (already present in readme) * Update SECURITY.md * Update CONTRIBUTING.md Update discord link to point to rules * Update README.md Update discord link to point to rules * Update README.md fix: ToC
35 lines
878 B
Text
35 lines
878 B
Text
# ./Dockerfile
|
|
|
|
FROM node:19-alpine
|
|
WORKDIR /app
|
|
|
|
# Copy package.json files for client and api
|
|
COPY /client/package*.json /app/client/
|
|
COPY /api/package*.json /app/api/
|
|
COPY /package*.json /app/
|
|
|
|
# Install dependencies for both client and api
|
|
RUN npm ci
|
|
|
|
# Copy the current directory contents into the container
|
|
COPY /client/ /app/client/
|
|
COPY /api/ /app/api/
|
|
|
|
# Set the memory limit for Node.js
|
|
ENV NODE_OPTIONS="--max-old-space-size=2048"
|
|
|
|
# Build artifacts for the client
|
|
RUN cd /app/client && npm run build
|
|
|
|
# Create the necessary directory and copy the client side code to the api directory
|
|
RUN mkdir -p /app/api/client && cp -R /app/client/dist /app/api/client/dist
|
|
|
|
# Make port 3080 available to the world outside this container
|
|
EXPOSE 3080
|
|
|
|
# Expose the server to 0.0.0.0
|
|
ENV HOST=0.0.0.0
|
|
|
|
# Run the app when the container launches
|
|
WORKDIR /app/api
|
|
CMD ["npm", "start"]
|