Skip to content

Commit

Permalink
Containerize
Browse files Browse the repository at this point in the history
  • Loading branch information
zivnevo committed Aug 4, 2021
1 parent 790e35e commit 568bb87
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# Copyright 2020- IBM Inc. All rights reserved
# SPDX-License-Identifier: Apache2.0
#

FROM python:3-alpine

COPY requirements.txt /netpol-synthesizer/
RUN pip install -r /netpol-synthesizer/requirements.txt

COPY src/ /netpol-synthesizer/src/
COPY baseline-rules/ /netpol-synthesizer/baseline-rules/

RUN addgroup -S netpolgroup && adduser -S netpoluser -G netpolgroup
USER netpoluser

ENTRYPOINT ["python", "/netpol-synthesizer/src/netpol_synth.py"]

0 comments on commit 568bb87

Please sign in to comment.