From f4c6d8cb20a50c94afd748c86639a8e205fc6696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20Bekir=20Kaya?= Date: Sun, 15 Sep 2024 07:17:15 +0300 Subject: [PATCH] Dockerfile modernization and minor fix Version in docker-compose.yml is obsolote. Also FROM and as cases should match. --- Dockerfile | 4 ++-- docker-compose.yml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9240c96cf..2a87eabb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11.4-slim-bullseye as install-browser +FROM python:3.11.4-slim-bullseye AS install-browser RUN apt-get update \ && apt-get satisfy -y \ @@ -18,7 +18,7 @@ RUN apt-get update \ build-essential \ && rm -rf /var/lib/apt/lists/* -FROM install-browser as gpt-researcher-install +FROM install-browser AS gpt-researcher-install ENV PIP_ROOT_USER_ACTION=ignore diff --git a/docker-compose.yml b/docker-compose.yml index 55a91c56b..6d66a7eb1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: '3' services: gpt-researcher: pull_policy: build