Skip to content

Commit b7ce0cd

Browse files
committed
WIP update permissions on Dockerfile
1 parent 25f6f4c commit b7ce0cd

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

file_checker_exec/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ RUN set -e \
2828
&& addgroup --system --gid 1001 gcontainer \
2929
&& adduser --system --uid 1001 -G gcontainer fileCheckerRunner
3030

31+
RUN set -e \
32+
&& mkdir -p /app/results /app/data /app/file_checker_spec; \
33+
&& chown root:gcontainer /app/results /app/data /app/file_checker_spec; \
34+
&& chmod 2775 /app/results; \
35+
&& chmod 2755 /app/data /app/file_checker_spec
36+
3137
# Copy the built jar file to the runtime stage
3238
COPY --from=builder --chown=root:gcontainer --chmod=750 /build/target/file_checker*.jar app.jar
3339
# Specify the default command for running the app

run-file-checker-windows.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@echo off
2+
REM Docker Compose script for Windows
3+
4+
docker compose --env-file .env.demo.bodc down
5+
docker compose --env-file .env.demo.bodc up

0 commit comments

Comments
 (0)