Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ghcr.io/danny-avila/librechat-dev:latest
|
| 2 |
+
RUN mkdir -p /app/uploads/temp
|
| 3 |
+
RUN mkdir -p /app/client/public/images/temp
|
| 4 |
+
RUN mkdir -p /app/api/logs/
|
| 5 |
+
RUN mkdir -p /app/data
|
| 6 |
+
|
| 7 |
+
# Give write permission to the directory
|
| 8 |
+
RUN chmod -R 777 /app/uploads/temp
|
| 9 |
+
RUN chmod -R 777 /app/client/public/images
|
| 10 |
+
RUN chmod -R 777 /app/api/logs/
|
| 11 |
+
RUN chmod -R 777 /app/data
|
| 12 |
+
|
| 13 |
+
RUN curl -o /app/librechat.yaml https://raw.githubusercontent.com/TalexCK/LibreChat/main/client/librechat.yaml
|
| 14 |
+
RUN curl -o /app/client/public/images/apple-touch-icon-180x180.png https://avatars.githubusercontent.com/u/84849086?s=96&v=4
|
| 15 |
+
RUN curl -o /app/client/public/images/favicon-32x32.png https://avatars.githubusercontent.com/u/84849086?s=96&v=4
|
| 16 |
+
RUN curl -o /app/client/public/images/favicon-16x16.png https://avatars.githubusercontent.com/u/84849086?s=96&v=4
|
| 17 |
+
RUN curl -o /app/client/public/images/logo.svg https://raw.githubusercontent.com/TalexCK/LibreChat/main/client/public/assets/logo.svg
|
| 18 |
+
|
| 19 |
+
RUN cd /app/api && npm install
|
| 20 |
+
|
| 21 |
+
CMD ["npm", "run", "backend"]
|