FROM python:3.12-slim

# Install the pyca cryptography library and Flask for the oracle server
RUN pip install --no-cache-dir \
    cryptography==42.0.8 \
    flask==3.0.3 \
    requests==2.32.3

WORKDIR /app
COPY oracle_server.py .
COPY attacker.py .

EXPOSE 5000

CMD ["python", "oracle_server.py"]
