diff --git a/backend/Dockerfile b/backend/Dockerfile index 36d572a7..5dec6cde 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-slim as base +FROM python:3.11-slim as base WORKDIR /app # certificates config @@ -35,5 +35,5 @@ CMD ["uvicorn", "src.main:app", "--reload", "--host", "0.0.0.0", "--port", "5000 FROM base as prod RUN pip install --extra-index-url https://download.pytorch.org/whl/cpu \ - torch==1.13.1+cpu torchvision==0.14.1+cpu && rm -r /root/.cache + torch==2.1.1+cpu torchvision==0.16.1+cpu && rm -r /root/.cache CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "5000", "--no-server-header"] diff --git a/backend/requirements.txt b/backend/requirements.txt index 0d901641..b8754541 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -7,8 +7,8 @@ gelf-formatter==0.2.1 pyyaml>=5.4.1 user-agents==2.2.0 boto3==1.28.39 -torch==1.13.1 -torchvision==0.14.1 +torch==2.1.1 +torchvision==0.16.1 # Dev pytest==7.4.3 coverage==7.3.2 \ No newline at end of file diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 9ed518a5..d121ec0f 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-slim as base +FROM node:20-slim as base WORKDIR /app @@ -19,10 +19,8 @@ FROM base as build RUN npm run build -FROM nginxinc/nginx-unprivileged:1.21.4-alpine as prod +FROM nginxinc/nginx-unprivileged:1.24-alpine as prod COPY nginx.conf /etc/nginx/nginx.conf -COPY --from=build /app/dist /usr/share/nginx/html/ - -FROM prod as test \ No newline at end of file +COPY --from=build /app/dist /usr/share/nginx/html/ \ No newline at end of file