mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-05-25 08:44:05 +02:00
feat: add Docker publishing via GitHub Actions
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
venv/
|
||||
__pycache__/
|
||||
*.pyc
|
||||
.env
|
||||
.pytest_cache/
|
||||
.coverage
|
||||
cctv.db
|
||||
*.json
|
||||
*.txt
|
||||
!requirements.txt
|
||||
@@ -9,6 +9,13 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Create a non-root user for security
|
||||
RUN adduser --system --uid 1001 backenduser \
|
||||
&& chown -R backenduser /app
|
||||
|
||||
# Switch to the non-root user
|
||||
USER backenduser
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user