Skip to content

Commit

Permalink
fix: docker run error (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinying authored Jul 11, 2024
1 parent b66396b commit e896664
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ ENV POETRY_VERSION=1.8.3 \
# Install poetry
RUN pip install "poetry==$POETRY_VERSION"

# Copy only requirements to cache them in docker layer
# Copy project
WORKDIR /app
COPY poetry.lock pyproject.toml /app/
COPY . /app/

# Project initialization:
RUN poetry install --no-interaction --no-ansi --no-root --no-dev
# Install project
RUN poetry install --no-interaction --no-ansi --all-extras --without dev,docs

# Copy Python app to the Docker image
COPY modpoll /app/modpoll/

CMD [ "python", "-m", "modpoll"]
CMD ["modpoll", "--version"]

0 comments on commit e896664

Please sign in to comment.