From 5bc6382f8916565658196e10f19900267a811124 Mon Sep 17 00:00:00 2001 From: Ali Afsharzadeh Date: Sat, 29 Jun 2024 09:28:24 +0330 Subject: [PATCH] Fix buildx warnings when creating the docker image --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e2067f6..4e78d28 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 -FROM python:3.11-alpine3.19 as BASE +FROM python:3.11-alpine3.19 AS base -FROM base as compiler +FROM base AS compiler WORKDIR /app @@ -10,7 +10,7 @@ COPY src . RUN python3 -m compileall -b -f . && \ find . -name "*.py" -type f -delete -FROM base as DEP_INSTALLER +FROM base AS dep_installer COPY requirements.txt .