Skip to content

Commit

Permalink
fix: poetry call
Browse files Browse the repository at this point in the history
  • Loading branch information
alanceloth committed Mar 23, 2024
1 parent 2b35363 commit 3f74e61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM python:3.12.2-slim
WORKDIR /app

# Install Poetry
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
RUN curl -sSL https://install.python-poetry.org | python -

# Allow installing as root
ENV POETRY_VIRTUALENVS_CREATE=false
Expand All @@ -15,7 +15,7 @@ COPY poetry.lock pyproject.toml ./
COPY .python-version ./

# Install dependencies
RUN /root/.poetry/bin/poetry install --no-dev
RUN poetry install --no-dev

# Copy all files from the current directory into the container at /app
COPY . .
Expand All @@ -24,7 +24,7 @@ COPY . .
#EXPOSE 8501

# Command to run the Streamlit app when the container starts
#CMD ["/root/.poetry/bin/poetry", "run", "streamlit", "run", "frontend.py"]
#CMD ["poetry", "run", "streamlit", "run", "frontend.py"]

# Command to run the app
CMD ["/root/.poetry/bin/poetry", "run", "python", "main.py"]
CMD ["poetry", "run", "python", "main.py"]

0 comments on commit 3f74e61

Please sign in to comment.