-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a582d1d
commit 50f9254
Showing
1 changed file
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |