Skip to content

Commit

Permalink
Merge pull request #16 from opencost/fix_docker_fromas
Browse files Browse the repository at this point in the history
fix docker warning FromAsCase
  • Loading branch information
AjayTripathy authored Sep 8, 2024
2 parents f3c67dc + 12cf8bb commit ac63c15
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 ac63c15

Please sign in to comment.