SWE574-Fall2023-Group1 / SWE574-Fall2023-G1

Project for SWE 574 - Group 1
MIT License
7 stars 1 forks source link

Reduce docker image sizes #168

Closed sadikkuzu closed 9 months ago

sadikkuzu commented 10 months ago
sadik@dev:~$ docker images
REPOSITORY                    TAG       IMAGE ID       CREATED        SIZE
swe574-fall2023-g1_backend    latest    c89e7ddaf766   10 hours ago   1.37GB
swe574-fall2023-g1_frontend   latest    7db70540a617   12 hours ago   1.55GB

Is it possible to reduce these image sizes? image

sadikkuzu commented 9 months ago

backend 1.37 GB --> 446.18 MB


Initial images

initial-images

42c5be5 Remove psycopg2 package

remove-psycopg2

5a54cb1 Clean apt-get installations

apt-get-clean

c8ddb19 Use python:3.11-slim-buster as base image

python:3.11-slim-buster

sadikkuzu commented 9 months ago

GitHub Actions workflow durations:

2m 24s --> 1m 57s

workflows

sadikkuzu commented 9 months ago

frontend 2.07 GB --> 1.17 GB

image