Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update base images versions #285

Merged
merged 2 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim as base
FROM python:3.11-slim as base
WORKDIR /app

# certificates config
Expand Down Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 3 additions & 5 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-slim as base
FROM node:20-slim as base

WORKDIR /app

Expand All @@ -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
COPY --from=build /app/dist /usr/share/nginx/html/
Loading