mirror of
https://github.com/yshtcn/alicloud-ip-updater.git
synced 2026-02-04 03:42:45 +08:00
# Fix bug
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -1,20 +1,19 @@
|
||||
# Use an official Python runtime as a parent image
|
||||
FROM python:3.9-slim
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the current directory contents into the container at /app
|
||||
COPY . /app
|
||||
|
||||
# Install any needed packages specified in requirements.txt
|
||||
COPY requirements.txt /app/
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the application files into the container
|
||||
COPY AliCloudIPUpdater.py /app/
|
||||
COPY config.sample.json /app/
|
||||
|
||||
# Create directories for config and logs
|
||||
RUN mkdir /config /logs
|
||||
RUN mkdir -p /app/config
|
||||
|
||||
# Copy the sample config file into the image
|
||||
COPY config.sample.json /config/config.sample.json
|
||||
|
||||
# Run update_aliyun.py when the container launches
|
||||
# Run AliCloudIPUpdater.py when the container launches
|
||||
CMD ["python", "AliCloudIPUpdater.py"]
|
||||
|
||||
Reference in New Issue
Block a user