aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index e4806c3..4ac915e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,14 +12,18 @@ WORKDIR ${APPDIR}
EXPOSE 162
# Copy the current directory contents into the container at ${APPDIR}
-COPY ./src/ ./bin/
+COPY ./bin/ ./bin/
COPY ./etc/ ./etc/
-RUN mkdir -p ${APPDIR}/logs \
+RUN mkdir -p ${APPDIR}/data \
+ && mkdir -p ${APPDIR}/logs \
+ && mkdir -p ${APPDIR}/tmp \
&& chown -R ${APPUSER}:${APPUSER} ${APPDIR} \
+ && chmod a+w ${APPDIR}/data \
&& chmod a+w ${APPDIR}/logs \
+ && chmod a+w ${APPDIR}/tmp \
&& chmod 500 ${APPDIR}/etc \
- && chmod 500 ${APPDIR}/bin/dcae_snmptrapd.sh
+ && chmod 500 ${APPDIR}/bin/snmptrapd.sh
USER ${APPUSER}
@@ -27,4 +31,4 @@ USER ${APPUSER}
VOLUME ${APPDIR}/logs
# Run run_policy.sh when the container launches
-CMD ["./bin/dcae_snmptrapd.sh"]
+CMD ["./bin/snmptrapd.sh start"]