Skip to content

Commit

Permalink
fix: docker build warning FromAsCasing
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
  • Loading branch information
M0NsTeRRR committed Jul 18, 2024
1 parent c83b4e5 commit c03ab60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.3-alpine as base
FROM python:3.12.3-alpine AS base
# UI dependencies
RUN apk add build-base pkgconfig cairo-dev nodejs npm
# Setup rootless image
Expand All @@ -17,7 +17,7 @@ ENV HYPERGLASS_REDIS_HOST=redis
ENV HYPEGLASS_DISABLE_UI=true
ENV HYPERGLASS_CONTAINER=true

FROM base as ui
FROM base AS ui
# Set NPM global install path to the home directory so permissions are correct
RUN mkdir ~/.npm-global ~/.npm-store
RUN npm config set prefix "~/.npm-global"
Expand All @@ -26,7 +26,7 @@ WORKDIR /opt/hyperglass/hyperglass/ui
RUN npm install -g pnpm
RUN pnpm install -P

FROM ui as hyperglass
FROM ui AS hyperglass
WORKDIR /opt/hyperglass
RUN pip3 install --user --no-cache-dir -e .

Expand Down

0 comments on commit c03ab60

Please sign in to comment.