commandr-plus-proxy / Dockerfile
adasdasdasdas's picture
Update Dockerfile
eb9cb9a verified
raw
history blame contribute delete
380 Bytes
FROM node:18-bullseye-slim
RUN apt-get update && \
apt-get install -y git
RUN git clone https://github.com/bmwm3gtrntrrazor/cohere-proxy.git /app
WORKDIR /app
RUN chown -R 1000:1000 /app
USER 1000
RUN npm install
COPY Dockerfile greeting.md* .env* ./
RUN npx tsc
EXPOSE 7860
ENV NODE_ENV=production
ENV NODE_OPTIONS="--max-old-space-size=12882"
CMD [ "node", "dist/index.js" ]