forked from eyeix/meilisearch-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-lite
More file actions
36 lines (25 loc) · 921 Bytes
/
Dockerfile-lite
File metadata and controls
36 lines (25 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM node:22 AS build
# Setting working directory.
WORKDIR /opt/meilisearch-ui
RUN npm install -g pnpm
# Copying source files
COPY . .
# Installing dependencies
RUN pnpm install
# Build the app
RUN npm run build
# -------
FROM nginx:stable-alpine AS final
COPY --from=build /opt/meilisearch-ui/dist /usr/share/nginx/html
# Create a directory for our available templates
RUN mkdir -p /etc/nginx/templates-available/
# Copy in the templates and the entrypoint scripts
COPY nginx.basepath.conf.template /etc/nginx/templates-available/
COPY nginx.root.conf.template /etc/nginx/templates-available/
COPY docker-entrypoint.d/15-prepare-templates.sh /docker-entrypoint.d/
COPY docker-entrypoint.d/30-basepath-subst.sh /docker-entrypoint.d/
# Make the scripts executable
RUN chmod +x /docker-entrypoint.d/15-prepare-templates.sh /docker-entrypoint.d/30-basepath-subst.sh
# Default to root
ENV BASE_PATH=""
EXPOSE 24900