Skip to content

Commit

Permalink
fix docker warning FromAsCase
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lmello authored Sep 7, 2024
1 parent f3c67dc commit 12cf8bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 12cf8bb

Please sign in to comment.