File size: 624 Bytes
c92cb55 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
FROM lobehub/lobe-chat
EXPOSE 7860
ENV PORT=7860
USER root
RUN mkdir -p /app/.next/cache
RUN chmod -R 777 /app/.next/cache
RUN mkdir -p nonexistent
RUN chmod -R 777 nonexistent
RUN --mount=type=secret,id=ACCESS_CODE,dst=/etc/secrets/ACCESS_CODE \
export ACCESS_CODE=$(cat /etc/secrets/ACCESS_CODE)
RUN --mount=type=secret,id=OPENAI_API_KEY,dst=/etc/secrets/OPENAI_API_KEY \
export OPENAI_API_KEY=$(cat /etc/secrets/OPENAI_API_KEY)
RUN --mount=type=secret,id=OPENAI_PROXY_URL,dst=/etc/secrets/OPENAI_PROXY_URL \
export OPENAI_PROXY_URL=$(cat /etc/secrets/OPENAI_PROXY_URL)
USER nextjs
CMD ["node", "server.js"] |