mirror of
https://github.com/sstent/GarminSync.git
synced 2026-01-26 09:02:51 +00:00
25 lines
523 B
Docker
25 lines
523 B
Docker
# Use official Python 3.10 slim image
|
|
FROM python:3.10-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
libsqlite3-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy and install Python dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy application files
|
|
COPY .env.example ./
|
|
COPY main.py ./
|
|
|
|
# Set container permissions
|
|
RUN chmod +x main.py
|
|
|
|
# Command to run the application
|
|
ENTRYPOINT ["python", "main.py"]
|