23 lines
616 B
Plaintext
Executable File
23 lines
616 B
Plaintext
Executable File
# Use an official lightweight Python image
|
|
FROM python:3-alpine
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Copy requirements file into the container
|
|
COPY requirements.txt .
|
|
|
|
RUN apk add --no-cache \
|
|
postgresql-libs \
|
|
docker-cli \
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
gcc musl-dev postgresql-dev \
|
|
&& python3 -m pip install --no-cache-dir -r requirements.txt \
|
|
&& apk del .build-deps
|
|
|
|
# Copy the rest of your project files into the container
|
|
COPY decorrupt_files.py main.py
|
|
|
|
# Run your Python file (replace main.py with your script)
|
|
CMD ["python", "main.py"]
|