6
6
# PYTHON-BASE
7
7
# Sets up all our shared environment variables
8
8
# ###############################
9
- FROM --platform=$TARGETPLATFORM python:3.11-slim as python-base
9
+ FROM --platform=$TARGETPLATFORM python:3.11-slim AS python-base
10
10
11
11
ARG TARGETPLATFORM
12
12
13
- # python
13
+ # python
14
14
ENV PYTHONUNBUFFERED=1 \
15
15
# prevents python creating .pyc files
16
16
PYTHONDONTWRITEBYTECODE=1 \
@@ -44,13 +44,13 @@ ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
44
44
# BUILDER-BASE
45
45
# Used to build deps + create our virtual environment
46
46
# ###############################
47
- FROM python-base as builder-base
47
+ FROM python-base AS builder-base
48
48
RUN apt-get update \
49
49
&& apt-get install --no-install-recommends -y \
50
- # deps for installing poetry
51
- curl \
52
- # deps for building python deps
53
- build-essential
50
+ # deps for installing poetry
51
+ curl \
52
+ # deps for building python deps
53
+ build-essential
54
54
55
55
# install poetry - respects $POETRY_VERSION & $POETRY_HOME
56
56
# The --mount will mount the buildx cache directory to where
@@ -77,7 +77,7 @@ RUN --mount=type=cache,target=/root/.cache \
77
77
# PRODUCTION
78
78
# Final image used for runtime
79
79
# ###############################
80
- FROM python-base as production
80
+ FROM python-base AS production
81
81
COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH
82
82
83
83
RUN mkdir -p /opt/dagster/dagster_home /opt/dagster/app
0 commit comments