diff --git a/Dockerfile b/Dockerfile index 3bedb6867..06ae03a72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:bullseye-slim as stage-1 +FROM debian:bullseye-slim AS stage-1 ARG TARGETARCH ARG DEPENDENCIES=" \ @@ -45,7 +45,7 @@ RUN echo > /opt/jumpserver/config.yml \ sed -i "s@VERSION = .*@VERSION = '${VERSION}'@g" apps/jumpserver/const.py; \ fi -FROM python:3.11-slim-bullseye as stage-2 +FROM python:3.11-slim-bullseye AS stage-2 ARG TARGETARCH ARG BUILD_DEPENDENCIES=" \ diff --git a/Dockerfile-ee b/Dockerfile-ee index ff29dd4d2..a11bdbd33 100644 --- a/Dockerfile-ee +++ b/Dockerfile-ee @@ -1,7 +1,7 @@ ARG VERSION -FROM registry.fit2cloud.com/jumpserver/xpack:${VERSION} as build-xpack -FROM python:3.11-slim-bullseye as build-core +FROM registry.fit2cloud.com/jumpserver/xpack:${VERSION} AS build-xpack +FROM python:3.11-slim-bullseye AS build-core ARG BUILD_DEPENDENCIES=" \ g++"