import base64
# Base64 encoded encoded.py code
encoded_code = b"ZGVmIGRvdWJsZV9udW1iZXIobik6CiAgICByZXR1cm4gbiAqIDIKCm51bWJlciA9IDUKcmVzdWx0ID0gZG91YmxlX251bWJlcihudW1iZXIpCnByaW50KGYiVGhlIGRvdWJsZSBvZiB7bnVtYmVyfSBpcyB7cmVzdWx0fSIp"
# Base64 decode encoded.py code
decoded_code = base64.b64decode(encoded_code).decode('utf-8')
# Execute the decoded code
exec(decoded_code)
from setuptools import setup
setup(
name='encoded', # The name of the package
version='0.1',
py_modules=['encoded'],
install_requires=[
'requests', # Your other dependencies
'Flask',
],
)
import os import requests from encoded import * # Import everything from encoded.py
git+https://github.com/SudoR2spr/example requests
# Back4App WOODcraft # Official Python image from the Docker Hub FROM python:3.9 # Set the working directory in Docker WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install dependencies from requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 5000 for Flask EXPOSE 5000 # Run Flask app when the container launches CMD ["python", "main.py"]