From 12cf8bb663cea8cb4107ae04a65ca6987cba5f63 Mon Sep 17 00:00:00 2001 From: Leonardo Rodrigues de Mello Date: Sat, 7 Sep 2024 09:12:30 -0400 Subject: [PATCH] fix docker warning FromAsCase This fix a warning from docker that states the case of the from and as should be the same. Signed-off-by: Leonardo Rodrigues de Mello --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3b03e4a..a8c625f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM python:3.11-bookworm as builder +FROM python:3.11-bookworm AS builder RUN apt-get update && apt-get -y upgrade && apt-get install -y cmake && apt-get -y clean && mkdir -p /app/ && python3 -m venv /app/.venv RUN rm /bin/sh && ln -s /bin/bash /bin/sh COPY requirements.txt /app/ RUN cd app && source .venv/bin/activate && pip3 install -r requirements.txt -FROM python:3.11-bookworm as runtime-image +FROM python:3.11-bookworm AS runtime-image RUN apt-get update && apt-get -y upgrade && apt-get -y clean RUN useradd --create-home --shell /bin/sh --uid 8000 opencost COPY --from=builder /app /app