2023-05-15 15:47:30 -06:00
|
|
|
FROM node:18-bullseye-slim
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y git
|
|
|
|
RUN git clone https://gitgud.io/khanon/oai-reverse-proxy.git /app
|
|
|
|
WORKDIR /app
|
2023-11-13 22:41:19 -07:00
|
|
|
RUN chown -R 1000:1000 /app
|
|
|
|
USER 1000
|
2023-05-15 15:47:30 -06:00
|
|
|
RUN npm install
|
|
|
|
COPY Dockerfile greeting.md* .env* ./
|
|
|
|
RUN npm run build
|
|
|
|
EXPOSE 7860
|
|
|
|
ENV NODE_ENV=production
|
2024-01-07 11:58:50 -07:00
|
|
|
# Huggigface free VMs have 16GB of RAM so we can be greedy
|
2024-01-07 15:16:27 -07:00
|
|
|
ENV NODE_OPTIONS="--max-old-space-size=12882"
|
|
|
|
CMD [ "npm", "start" ]
|