refactor: Remove unused UI files and update Dockerfile

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.
This commit is contained in:
Théophile Diot 2024-08-07 13:22:39 +01:00
parent ea1ef434e2
commit acb8271000
No known key found for this signature in database
GPG key ID: FA995104A0BA376A
7 changed files with 0 additions and 20 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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