fix(frontend): serve precompressed web assets
This commit is contained in:
+7
-2
@@ -17,9 +17,14 @@ COPY apps/ops-web/ ./apps/ops-web/
|
||||
|
||||
RUN pnpm --filter ops-web build
|
||||
|
||||
FROM nginx:1.27-alpine
|
||||
FROM alpine:3.22
|
||||
|
||||
RUN apk add --no-cache nginx nginx-mod-http-brotli \
|
||||
&& mkdir -p /run/nginx /usr/share/nginx/html
|
||||
|
||||
COPY --from=builder /app/apps/ops-web/dist /usr/share/nginx/html
|
||||
COPY apps/ops-web/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY apps/ops-web/nginx.conf /etc/nginx/http.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
Reference in New Issue
Block a user