mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
Add podman installation instructions. Update dockerfile to stub env (#819)
* Added podman container installation docs. Updated dockerfile to stub env file if not present in source * Fix typos
This commit is contained in:
parent
887fec99ca
commit
5bbe411569
3 changed files with 229 additions and 7 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -1,13 +1,17 @@
|
|||
# Base node image
|
||||
FROM node:19-alpine AS node
|
||||
|
||||
# Install curl for health check
|
||||
RUN apk --no-cache add curl
|
||||
|
||||
COPY . /app
|
||||
# Install dependencies
|
||||
WORKDIR /app
|
||||
RUN npm ci
|
||||
|
||||
# Install call deps - Install curl for health check
|
||||
RUN apk --no-cache add curl && \
|
||||
# We want to inherit env from the container, not the file
|
||||
# This will preserve any existing env file if it's already in souce
|
||||
# otherwise it will create a new one
|
||||
touch .env && \
|
||||
# Build deps in seperate
|
||||
npm ci
|
||||
|
||||
# React client build
|
||||
ENV NODE_OPTIONS="--max-old-space-size=2048"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue