useful_web_tools/cert_decoder/Dockerfile

19 lines
356 B
Docker

# Use an official lightweight Python image
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY main.py .
# Expose the port the app runs on
EXPOSE 5000
# Command to run the application
CMD ["python", "main.py"]