lain-iwakura commited on
Commit
f5bd107
1 Parent(s): 57fd3ba

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -15
Dockerfile CHANGED
@@ -1,15 +1,13 @@
1
- FROM node:20-bullseye-slim
2
- RUN apt-get update && \
3
- apt-get install -y git
4
- EXPOSE 7860
5
- WORKDIR /home/node
6
- RUN mkdir app && chown node:node app
7
- USER node
8
- WORKDIR /home/node/app
9
- RUN mkdir source_code
10
- COPY Dockerfile greeting.md* .env* ./
11
- COPY run.sh ./
12
- USER root
13
- RUN chmod +x ./run.sh
14
- USER node
15
- CMD ["/bin/bash", "./run.sh"]
 
1
+ from python:3.10
2
+
3
+ workdir /app
4
+
5
+ copy requirements.txt .
6
+ run pip install -r requirements.txt
7
+
8
+ run mkdir /.cache && chmod 777 /.cache
9
+ run mkdir .chroma && chmod 777 .chroma
10
+ copy . .
11
+ expose 7860
12
+
13
+ cmd ["python", "display_maintenance_error.py"]