sync
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
# Use an official Python runtime as a parent image
|
||||
FROM python:3.13-slim
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the dependencies file to the working directory
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install any needed packages specified in requirements.txt
|
||||
RUN pip install --upgrade pip; pip install --no-cache-dir --upgrade -r requirements.txt
|
||||
|
||||
# Copy the rest of the application's code to the working directory
|
||||
COPY . .
|
||||
|
||||
# Set up a volume for persistent data
|
||||
VOLUME /app/data
|
||||
|
||||
# The command to run the application
|
||||
ENTRYPOINT ["python", "fitbitsync.py"]
|
||||
|
||||
# Default command to run when container starts
|
||||
CMD ["schedule"]
|
||||
Reference in New Issue
Block a user