roughly working again, now dev docker exists
This commit is contained in:
parent
a77a0c0393
commit
155ab39368
26 changed files with 1976 additions and 235 deletions
34
Dockerfile
34
Dockerfile
|
|
@ -6,13 +6,37 @@ WORKDIR /app
|
|||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy application
|
||||
COPY main.py .
|
||||
|
||||
# Copy the handlers directory into the Docker image
|
||||
COPY handlers/ ./handlers/
|
||||
|
||||
# Create data directory
|
||||
RUN mkdir -p /data && chmod 777 /data
|
||||
# Copy application handler
|
||||
COPY application_handler.py .
|
||||
|
||||
# Copy Telegram bot
|
||||
COPY telegram_bot.py .
|
||||
|
||||
# Copy the tests directory
|
||||
COPY tests/ ./tests/
|
||||
|
||||
# Copy state manager
|
||||
COPY state_manager.py .
|
||||
|
||||
# Move the main.py COPY statement to the end to ensure it is updated last
|
||||
COPY main.py .
|
||||
|
||||
# Ensure the data directory exists
|
||||
RUN mkdir -p /app/data && chmod 777 /app/data
|
||||
|
||||
# Ensure the state.json file exists
|
||||
RUN touch /app/data/state.json && chmod 666 /app/data/state.json
|
||||
|
||||
# Copy fonts from the local data/fonts directory into the container
|
||||
COPY data/fonts/*.ttf /usr/share/fonts/truetype/custom/
|
||||
|
||||
# Refresh the font cache to include the new fonts
|
||||
RUN fc-cache -fv
|
||||
|
||||
# Log available fonts for debugging
|
||||
RUN fc-list
|
||||
|
||||
CMD ["python", "-u", "main.py"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue