iskoldt-X commited on
Commit
67158a9
1 Parent(s): 74b77fe

Back to the first version of Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,13 +1,13 @@
1
- FROM python:3.9-alpine as builder
2
- RUN apk add --no-cache build-base
3
  COPY requirements.txt .
4
  RUN pip install --user -r requirements.txt
5
 
6
- FROM python:3.9-alpine
7
  MAINTAINER iskoldt
8
  COPY --from=builder /root/.local /root/.local
9
  ENV PATH=/root/.local/bin:$PATH
 
10
  WORKDIR /app
11
- COPY ChuanhuChatbot.py .
12
  ENV my_api_key empty
13
  CMD ["python3", "-u", "ChuanhuChatbot.py", "2>&1", "|", "tee", "/var/log/application.log"]
 
1
+ FROM python:3.9 as builder
2
+ RUN apt-get update && apt-get install -y build-essential
3
  COPY requirements.txt .
4
  RUN pip install --user -r requirements.txt
5
 
6
+ FROM python:3.9
7
  MAINTAINER iskoldt
8
  COPY --from=builder /root/.local /root/.local
9
  ENV PATH=/root/.local/bin:$PATH
10
+ COPY . /app
11
  WORKDIR /app
 
12
  ENV my_api_key empty
13
  CMD ["python3", "-u", "ChuanhuChatbot.py", "2>&1", "|", "tee", "/var/log/application.log"]