-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buildfile is broken #1571
Comments
try this:
|
❯ docker run -t "whatwaf" "--help"
Traceback (most recent call last):
File "/app/whatwaf", line 3, in <module>
from trigger.main import main
ModuleNotFoundError: No module named 'trigger' |
hmm. okay thanks |
the following seems to work to build the container: FROM ubuntu:latest However,
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
|
You can save yourself a lot of time by using an official Python container image to start off (and other problems with the previously suggested approach): FROM python:3.10
COPY . /app
WORKDIR /app
RUN pip install pyyaml pysocks
RUN pip install -r /app/requirements.txt
ENV PATH="${PATH}:/app"
ENTRYPOINT ["whatwaf"] # Build
docker build -t whatwaf .
# Run
docker run -it whatwaf --help |
podman build -t whatwaf .
The text was updated successfully, but these errors were encountered: