mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2025-09-07 14:38:42 +00:00
Add Dockerfile and devcontainer
This commit is contained in:
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
tor onionshare-cli \
|
||||
jq qrencode imagemagick poppler-utils \
|
||||
nodejs npm \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install npm tools for HTML/JS processing
|
||||
RUN npm install -g javascript-obfuscator html-minifier-terser
|
||||
|
||||
# Copy VoxVera source
|
||||
COPY . /opt/voxvera
|
||||
ENV PYTHONPATH=/opt/voxvera
|
||||
|
||||
# Make voxvera command available
|
||||
RUN echo '#!/bin/sh\nexec python3 -m voxvera.cli "$@"' > /usr/local/bin/voxvera \
|
||||
&& chmod +x /usr/local/bin/voxvera
|
||||
|
||||
# Prepare flyers volume
|
||||
RUN mkdir /flyers && ln -s /flyers /opt/voxvera/host
|
||||
VOLUME /flyers
|
||||
WORKDIR /opt/voxvera
|
||||
|
||||
CMD ["voxvera", "quickstart"]
|
Reference in New Issue
Block a user