duzhong's picture
Upload Dockerfile with huggingface_hub
f2647b3 verified
raw
history blame contribute delete
560 Bytes
# -- Base Image --
FROM node:20-slim
# -- Install Dependencies --
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
# -- App Directory --
WORKDIR /home/node/app
# -- Copy Source --
COPY . .
# -- Install Node Modules --
RUN npm install
# -- Permissions --
RUN chown -R node:node /home/node/app
# -- Environment Variables --
ENV NODE_ENV=production
ENV SILLYTAVERN_PORT=7860
# -- Switch User --
USER node
# -- Expose Port --
EXPOSE 7860
# -- Start Command --
CMD ["node", "server.js", "--port", "7860", "--listen"]