mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
chore: streamline frontend Docker build arguments
This commit is contained in:
+1
-8
@@ -4,15 +4,8 @@ COPY package.json bun.lock* ./
|
|||||||
RUN bun install --frozen-lockfile
|
RUN bun install --frozen-lockfile
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
ARG BACKEND_DOMAIN
|
|
||||||
ARG BACKEND_PORT
|
|
||||||
ARG SSL_ENABLED
|
|
||||||
ARG VITE_API_URL
|
ARG VITE_API_URL
|
||||||
|
|
||||||
ENV BACKEND_DOMAIN=$BACKEND_DOMAIN
|
|
||||||
ENV BACKEND_PORT=$BACKEND_PORT
|
|
||||||
ENV SSL_ENABLED=$SSL_ENABLED
|
|
||||||
|
|
||||||
ENV VITE_API_URL=$VITE_API_URL
|
ENV VITE_API_URL=$VITE_API_URL
|
||||||
|
|
||||||
RUN bun run build:prod
|
RUN bun run build:prod
|
||||||
@@ -29,4 +22,4 @@ RUN chown -R nginx:nginx /usr/share/nginx/html
|
|||||||
USER nginx
|
USER nginx
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT ["nginx", "-e", "/tmp/error.log", "-g", "daemon off;"]
|
ENTRYPOINT ["nginx", "-e", "/tmp/error.log", "-g", "daemon off;"]
|
||||||
|
|||||||
Reference in New Issue
Block a user