mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 04:09:25 +08:00
Update Dockerfile
This commit is contained in:
parent
b664cb33c4
commit
7f24c350aa
1 changed files with 5 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
FROM python:3.11.4-bookworm
|
||||
|
||||
ENV PYTHONBUFFERED 1
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
ENV PYTHONBUFFERED=1
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
WORKDIR /code
|
||||
COPY . /code/
|
||||
|
@ -10,7 +10,8 @@ COPY start.sh /code/
|
|||
RUN chmod +x /code/start.sh
|
||||
|
||||
# Install packages
|
||||
RUN apt-get update && apt-get install -y graphviz libgraphviz-dev graphviz-dev wget zip
|
||||
RUN apt update
|
||||
RUN apt install -y graphviz libgraphviz-dev graphviz-dev wget zip
|
||||
RUN pip3 install --upgrade pip
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt
|
||||
|
||||
|
@ -26,7 +27,7 @@ RUN pip3 install --no-cache-dir -r requirements.txt
|
|||
# && chmod +x /usr/bin/chromedriver
|
||||
|
||||
# Install Firefox and Geckodriver
|
||||
RUN apt-get update && apt-get install -y firefox-esr
|
||||
RUN apt install -y firefox-esr
|
||||
# Download the latest Geckodriver and install it
|
||||
ENV GECKODRIVER_VERSION=latest
|
||||
RUN wget -O geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v0.35.0/geckodriver-v0.35.0-linux64.tar.gz
|
||||
|
|
Loading…
Reference in a new issue