Added Dockerfile for easier script use
This commit is contained in:
parent
ff49e11010
commit
9a0bbd79ae
15
gitea/auto_mapper/Dockerfile
Normal file
15
gitea/auto_mapper/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
# Use a Python base image
|
||||
FROM python:3.9
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the Python file and .env file to the working directory
|
||||
COPY auto_mapper.py .
|
||||
COPY .env .
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --no-cache-dir python-dotenv
|
||||
|
||||
# Run the Python file
|
||||
CMD ["python", "auto_mapper.py"]
|
Reference in New Issue
Block a user