mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-14 14:38:51 +01:00
Move Dockerfiles into one toplevel Dockerfile
This commit is contained in:
parent
1041146fcb
commit
c233cc0d5c
5 changed files with 56 additions and 66 deletions
|
|
@ -1,2 +0,0 @@
|
|||
/node_modules
|
||||
.env
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
FROM node:19-alpine
|
||||
WORKDIR /api
|
||||
# copy package.json into the container at /api
|
||||
COPY package*.json /api/
|
||||
# install dependencies
|
||||
RUN npm ci
|
||||
# Copy the current directory contents into the container at /api
|
||||
COPY . /api/
|
||||
# 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
|
||||
CMD ["npm", "start"]
|
||||
|
||||
# docker build -t node-api .
|
||||
Loading…
Add table
Add a link
Reference in a new issue