mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Update Dockerfile to include UI files and fix build process
This commit is contained in:
parent
465879edf0
commit
5e258e8b0d
1 changed files with 10 additions and 1 deletions
|
|
@ -34,9 +34,13 @@ COPY src/common/settings.json settings.json
|
|||
COPY src/common/utils utils
|
||||
COPY src/common/helpers helpers
|
||||
COPY src/common/templates templates
|
||||
COPY src/ui ui
|
||||
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
|
||||
RUN DOCKERFILE=yes python3 build.py
|
||||
|
|
@ -44,6 +48,11 @@ RUN DOCKERFILE=yes python3 build.py
|
|||
# We can delete the client folder after building the frontend
|
||||
RUN rm -rf /usr/share/bunkerweb/ui/client
|
||||
|
||||
WORKDIR /usr/share/bunkerweb
|
||||
|
||||
COPY src/ui/src ui/src
|
||||
COPY src/ui/*.py ui/
|
||||
|
||||
FROM python:3.12.4-alpine@sha256:7f15e22f496c65cffbbac5e30e7e98d60f3e3b9cc5ee5d51cf3c55ed604787c8
|
||||
|
||||
# Set default umask to prevent huge recursive chmod increasing the final image size
|
||||
|
|
|
|||
Loading…
Reference in a new issue