Skip to content

Commit 3aaa144

Browse files
committed
fix multiarch dockerfile
1 parent f7b88b5 commit 3aaa144

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.6.2
4+
5+
This release only contains a new docker image.
6+
7+
* fix docker image predefined clusters, for real this time, fixes [#293](https://github.com/cars10/elasticvue/issues/293)
8+
39
## 1.6.1
410

511
This release only contains a new docker image.

docker/Dockerfile_multiarch

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1+
# Build elasticvue
12
FROM --platform=$BUILDPLATFORM node:22.5.1-bookworm AS builder
23
RUN mkdir /app
34
WORKDIR /app
4-
55
RUN corepack enable
66
COPY package.json yarn.lock .yarnrc.yml ./
7-
87
RUN yarn install
98
COPY . .
109
RUN VITE_APP_BUILD_MODE=docker yarn build
1110

11+
12+
# Create lightweight nginx image
1213
FROM nginxinc/nginx-unprivileged:mainline-alpine
14+
ENV CONFIG_FILE_DIR=/usr/share/nginx/html/api
1315
COPY --from=builder /app/dist /usr/share/nginx/html
16+
USER root
17+
RUN mkdir -p $CONFIG_FILE_DIR
18+
RUN chown -R nginx:nginx $CONFIG_FILE_DIR
19+
USER nginx
1420
RUN rm /etc/nginx/conf.d/default.conf
1521
COPY docker/nginx/elasticvue.conf /etc/nginx/conf.d/
1622
COPY docker/nginx/99_default_clusters.sh /docker-entrypoint.d

0 commit comments

Comments
 (0)