Sample Dockerfile
# Use the official Python image from the Docker Hub
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the server.py file into the container at /app
COPY . /app/
# Expose port 8888
EXPOSE 8888
# Run the server.py script
# Original ENTRTPOINT
#ENTRYPOINT ["python", "main.py"]
ADD twistlock_defender_app_embedded.tar.gz /defender_data
ENV DEFENDER_TYPE="appEmbedded"
ENV DEFENDER_APP_ID="MyWebApp"
ENV FILESYSTEM_MONITORING="true"
# log arg is not working in app-embedded defender
#ENV LOG_PROD="true"
#twistlock-console Cluster IP
ENV WS_ADDRESS="wss://<twistlock-console-dns-or-IP>:8084"
ENV DATA_FOLDER="/defender_data"
ENV INSTALL_BUNDLE="eyJzZ****"
ENV FIPS_ENABLED="false"
# Run the server.py new script
ENTRYPOINT ["/defender_data/defender", "app-embedded", "python", "main.py"]