Neurolingua commited on
Commit
a7438ba
1 Parent(s): d2ac0fb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -10
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.7.2-alpine3.8
2
 
3
  # Install necessary system dependencies and gnupg
4
  RUN apt-get update && apt-get install -y \
@@ -15,17 +15,10 @@ RUN apt-get update && apt-get install -y \
15
  libappindicator1 \
16
  libgbm-dev \
17
  libgtk-3-0 \
 
 
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
-
21
-
22
- RUN apk add chromium
23
- RUN apk add chromium-chromedriver
24
- ENV CHROME_BIN=/usr/bin/chromium-browser \
25
- CHROME_PATH=/usr/lib/chromium/
26
- COPY entrypoint.sh /
27
- ENTRYPOINT ["sh","/entrypoint.sh"]
28
-
29
  WORKDIR /code
30
  RUN mkdir -p /code/uploads && chmod 755 /code/uploads
31
 
@@ -39,5 +32,9 @@ RUN useradd -ms /bin/sh myuser
39
  RUN chown -R myuser:myuser /code
40
  USER myuser
41
 
 
 
 
 
42
  # Default command to run the application
43
  CMD ["python", "app.py"]
 
1
+ FROM python:3.9-slim
2
 
3
  # Install necessary system dependencies and gnupg
4
  RUN apt-get update && apt-get install -y \
 
15
  libappindicator1 \
16
  libgbm-dev \
17
  libgtk-3-0 \
18
+ chromium \
19
+ chromium-driver \
20
  && rm -rf /var/lib/apt/lists/*
21
 
 
 
 
 
 
 
 
 
 
22
  WORKDIR /code
23
  RUN mkdir -p /code/uploads && chmod 755 /code/uploads
24
 
 
32
  RUN chown -R myuser:myuser /code
33
  USER myuser
34
 
35
+ # Set environment variables for Chrome
36
+ ENV CHROME_BIN=/usr/bin/chromium
37
+ ENV CHROME_DRIVER=/usr/bin/chromium-driver
38
+
39
  # Default command to run the application
40
  CMD ["python", "app.py"]