Skip to content

Commit

Permalink
updated Dockerfile base image to ubi
Browse files Browse the repository at this point in the history
Signed-off-by: Tullio Sebastiani <[email protected]>
  • Loading branch information
tsebastiani committed May 9, 2024
1 parent b3a61e0 commit 466cfb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# syntax=docker/dockerfile:1

FROM python:3.9-slim-buster
FROM registry.fedoraproject.org/f33/python3

WORKDIR /python-docker
ENV POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_CREATE=false

USER root
COPY pyproject.toml pyproject.toml
COPY poetry.lock poetry.lock
RUN apt-get update && apt-get install -y curl
RUN pip3 install poetry
RUN poetry install

COPY . .

CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
CMD [ "flask", "run", "--host=0.0.0.0"]

0 comments on commit 466cfb2

Please sign in to comment.