Skip to content

Commit

Permalink
refactor: Remove unused UI files and update Dockerfile
Browse files Browse the repository at this point in the history
The Dockerfile for the Linux environment has been updated to remove the unnecessary copying of UI files, specifically the "static" and "templates" directories. These directories are no longer used in the application and can be safely removed. This change reduces the size of the Docker image and improves build times.
  • Loading branch information
TheophileDiot committed Aug 7, 2024
1 parent ea1ef43 commit acb8271
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 20 deletions.
3 changes: 0 additions & 3 deletions src/linux/Dockerfile-debian
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,11 @@ COPY src/common/gen gen
COPY src/common/helpers helpers
COPY src/common/settings.json settings.json
COPY src/common/utils utils
COPY src/common/templates templates
COPY src/scheduler scheduler
COPY src/VERSION VERSION

COPY src/ui/builder ui/builder
COPY src/ui/client ui/client
COPY src/ui/static ui/static
COPY src/ui/templates ui/templates

# This will build the frontend and add files to the UI folder
WORKDIR /usr/share/bunkerweb/ui/client
Expand Down
3 changes: 0 additions & 3 deletions src/linux/Dockerfile-fedora
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,11 @@ COPY src/common/gen gen
COPY src/common/helpers helpers
COPY src/common/settings.json settings.json
COPY src/common/utils utils
COPY src/common/templates templates
COPY src/scheduler scheduler
COPY src/VERSION VERSION

COPY src/ui/builder ui/builder
COPY src/ui/client ui/client
COPY src/ui/static ui/static
COPY src/ui/templates ui/templates

# This will build the frontend and add files to the UI folder
WORKDIR /usr/share/bunkerweb/ui/client
Expand Down
3 changes: 0 additions & 3 deletions src/linux/Dockerfile-rhel
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,11 @@ COPY src/common/gen gen
COPY src/common/helpers helpers
COPY src/common/settings.json settings.json
COPY src/common/utils utils
COPY src/common/templates templates
COPY src/scheduler scheduler
COPY src/VERSION VERSION

COPY src/ui/builder ui/builder
COPY src/ui/client ui/client
COPY src/ui/static ui/static
COPY src/ui/templates ui/templates

# This will build the frontend and add files to the UI folder
WORKDIR /usr/share/bunkerweb/ui/client
Expand Down
3 changes: 0 additions & 3 deletions src/linux/Dockerfile-rhel9
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,11 @@ COPY src/common/gen gen
COPY src/common/helpers helpers
COPY src/common/settings.json settings.json
COPY src/common/utils utils
COPY src/common/templates templates
COPY src/scheduler scheduler
COPY src/VERSION VERSION

COPY src/ui/builder ui/builder
COPY src/ui/client ui/client
COPY src/ui/static ui/static
COPY src/ui/templates ui/templates

# This will build the frontend and add files to the UI folder
WORKDIR /usr/share/bunkerweb/ui/client
Expand Down
3 changes: 0 additions & 3 deletions src/linux/Dockerfile-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,11 @@ COPY src/common/gen gen
COPY src/common/helpers helpers
COPY src/common/settings.json settings.json
COPY src/common/utils utils
COPY src/common/templates templates
COPY src/scheduler scheduler
COPY src/VERSION VERSION

COPY src/ui/builder ui/builder
COPY src/ui/client ui/client
COPY src/ui/static ui/static
COPY src/ui/templates ui/templates

# This will build the frontend and add files to the UI folder
WORKDIR /usr/share/bunkerweb/ui/client
Expand Down
3 changes: 0 additions & 3 deletions src/linux/Dockerfile-ubuntu-jammy
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,11 @@ COPY src/common/gen gen
COPY src/common/helpers helpers
COPY src/common/settings.json settings.json
COPY src/common/utils utils
COPY src/common/templates templates
COPY src/scheduler scheduler
COPY src/VERSION VERSION

COPY src/ui/builder ui/builder
COPY src/ui/client ui/client
COPY src/ui/static ui/static
COPY src/ui/templates ui/templates

# This will build the frontend and add files to the UI folder
WORKDIR /usr/share/bunkerweb/ui/client
Expand Down
2 changes: 0 additions & 2 deletions src/ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ COPY src/VERSION VERSION

COPY src/ui/builder ui/builder
COPY src/ui/client ui/client
COPY src/ui/static ui/static
COPY src/ui/templates ui/templates

# This will build the frontend and add files to the UI folder
WORKDIR /usr/share/bunkerweb/ui/client
Expand Down

0 comments on commit acb8271

Please sign in to comment.