also copy the data folder

This commit is contained in:
Thomas Quandalle
2022-06-16 20:35:37 +02:00
parent 53fe17b515
commit 2a86c810ac
2 changed files with 5 additions and 4 deletions

View File

@@ -1,3 +0,0 @@
general:
bestPracticeViolations:
- CIS-DI-0005

View File

@@ -37,6 +37,7 @@ RUN cd /go/src/github.com/kerberos-io/agent/machinery && \
mkdir -p /agent && \
mv main /agent && \
mv www /agent && \
mv data /agent && \
mkdir -p /agent/data/cloud && \
mkdir -p /agent/data/snapshots && \
mkdir -p /agent/data/log && \
@@ -111,5 +112,8 @@ EXPOSE 8080
HEALTHCHECK CMD curl --fail http://localhost:8080 || exit 1
WORKDIR /
###################################################
# Leeeeettttt'ssss goooooo!!!
# Run the shizzle from the right working directory.
WORKDIR /agent
CMD ["/agent/main", "run", "opensource", "8080"]