mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
Remove nginx setting
This commit is contained in:
parent
c233cc0d5c
commit
36f3d37ecc
3 changed files with 0 additions and 39 deletions
|
|
@ -1,2 +0,0 @@
|
||||||
/node_modules
|
|
||||||
.env
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
# Stage 1
|
|
||||||
FROM node:19-alpine as builder
|
|
||||||
WORKDIR /client
|
|
||||||
# copy package.json into the container at /client
|
|
||||||
COPY package*.json /client/
|
|
||||||
# install dependencies
|
|
||||||
RUN npm ci
|
|
||||||
# Copy the current directory contents into the container at /client
|
|
||||||
COPY . /client/
|
|
||||||
# Build webpack artifacts
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
# Stage 2
|
|
||||||
FROM nginx:stable-alpine
|
|
||||||
WORKDIR /usr/share/nginx/html
|
|
||||||
RUN rm -rf ./*
|
|
||||||
COPY --from=builder /client/public /usr/share/nginx/html
|
|
||||||
# Add your nginx.conf
|
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
||||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
|
||||||
|
|
||||||
# docker build -t react-client .
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name localhost;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
# Serve your React app
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
index index.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /api {
|
|
||||||
# Proxy requests to the API service
|
|
||||||
proxy_pass http://api:3080/api;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue