Exclude Electron files from web image
This commit is contained in:
@@ -47,6 +47,12 @@ RUN test -n "$VITE_HCAPTCHA_SITEKEY" \
|
|||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
# Electron entry points are not part of the web deployment.
|
||||||
|
RUN rm -f \
|
||||||
|
build/electron-config.json \
|
||||||
|
build/electron.js \
|
||||||
|
build/preload.js
|
||||||
|
|
||||||
FROM nginx:alpine AS runtime
|
FROM nginx:alpine AS runtime
|
||||||
|
|
||||||
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|||||||
@@ -55,6 +55,9 @@ The build also replaces the hard-coded external login avatar with the bundled
|
|||||||
`/logo.png` file. If upstream removes the known avatar URL, the build skips this
|
`/logo.png` file. If upstream removes the known avatar URL, the build skips this
|
||||||
step.
|
step.
|
||||||
|
|
||||||
|
The runtime image does not include the upstream Electron entry points and
|
||||||
|
configuration. These files are not used by the web deployment.
|
||||||
|
|
||||||
## Start the deployment
|
## Start the deployment
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user