chore: Update Dockerfile to copy common files and UI source code

The Dockerfile has been modified to copy the necessary common files and UI source code into the Docker container. This change ensures that all required files are included in the container, allowing for proper execution of the UI.
This commit is contained in:
Théophile Diot 2024-08-08 14:06:16 +01:00
parent 63f45756d4
commit af30c18e5b
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -24,17 +24,6 @@ RUN export MAKEFLAGS="-j$(nproc)" && \
# Install node and npm to build vite frontend
RUN apk add --no-cache nodejs npm
# Copy files
# can't exclude specific files/dir from . so we are copying everything by hand
COPY src/common/api api
COPY src/common/db db
COPY src/common/core core
COPY src/common/gen gen
COPY src/common/settings.json settings.json
COPY src/common/utils utils
COPY src/common/helpers helpers
COPY src/VERSION VERSION
COPY src/ui/builder ui/builder
COPY src/ui/client ui/client
@ -47,6 +36,16 @@ RUN rm -rf /usr/share/bunkerweb/ui/client
WORKDIR /usr/share/bunkerweb
# Copy files
# can't exclude specific files/dir from . so we are copying everything by hand
COPY src/common/api api
COPY src/common/db db
COPY src/common/core core
COPY src/common/gen gen
COPY src/common/settings.json settings.json
COPY src/common/utils utils
COPY src/common/helpers helpers
COPY src/VERSION VERSION
COPY src/ui/src ui/src
COPY src/ui/*.py ui/
COPY --chmod=750 src/ui/entrypoint.sh ui/