Finished Dockerfile
This commit is contained in:
parent
9a0bbd79ae
commit
24d6c3008f
@ -1,15 +1,16 @@
|
|||||||
# Use a Python base image
|
# Use a Python base image
|
||||||
FROM python:3.9
|
FROM python:3.9 AS zn-gitea-auto_mapper
|
||||||
|
|
||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy the Python file and .env file to the working directory
|
# Copy the Python file, .env file, and requirements.txt to the working directory
|
||||||
COPY auto_mapper.py .
|
COPY auto_mapper.py .
|
||||||
COPY .env .
|
COPY .env .
|
||||||
|
COPY requirements.txt .
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pip install --no-cache-dir python-dotenv
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# Run the Python file
|
# Run the Python file
|
||||||
CMD ["python", "auto_mapper.py"]
|
CMD ["python", "auto_mapper.py"]
|
Reference in New Issue
Block a user