Skip to content

Commit

Permalink
fix: updated Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MountainGod2 committed Aug 6, 2024
1 parent a582d1d commit 50f9254
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
FROM python:3.12-slim

# Set environment variables to prevent Poetry from creating a virtual environment
ENV POETRY_VIRTUALENVS_CREATE=false

# Set working directory
WORKDIR /app

# Copy your application code to the container
COPY . /app
# Install Poetry
RUN pip install --no-cache-dir poetry

# Copy your application code and configuration files to the container
COPY pyproject.toml poetry.lock* /app/

# Install dependencies
RUN pip install --upgrade pip \
&& pip install -r requirements.txt
RUN poetry install --no-dev

# Copy the rest of your application code to the container
COPY . /app

# Set the entrypoint or default command
CMD ["python", "-m", "chaturbate_poller"]
CMD ["poetry", "run", "python", "-m", "chaturbate_poller"]

0 comments on commit 50f9254

Please sign in to comment.