circulartext commited on
Commit
e14c2c4
·
1 Parent(s): f877332

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -27,20 +27,20 @@ USER user
27
  # Intermediate image with additional packages
28
  FROM debian:bullseye-slim as packages
29
 
30
- # Install gosu using apt-get
31
- RUN apt-get update && apt-get install -y gosu && rm -rf /var/lib/apt/lists/*
32
 
33
  # Final image
34
  FROM base
35
 
36
- # Copy gosu from the packages image
37
- COPY --from=packages /usr/sbin/gosu /usr/sbin/gosu
38
 
39
  # Copy entrypoint.sh to /app
40
  COPY entrypoint.sh /app/entrypoint.sh
41
 
42
- # Change permissions using gosu
43
- RUN gosu user chmod +x /app/entrypoint.sh
44
 
45
  # Set the entrypoint script as executable
46
  ENTRYPOINT ["/app/entrypoint.sh"]
 
27
  # Intermediate image with additional packages
28
  FROM debian:bullseye-slim as packages
29
 
30
+ # Install su-exec using apt-get
31
+ RUN apt-get update && apt-get install -y su-exec && rm -rf /var/lib/apt/lists/*
32
 
33
  # Final image
34
  FROM base
35
 
36
+ # Copy su-exec from the packages image
37
+ COPY --from=packages /usr/sbin/su-exec /usr/sbin/su-exec
38
 
39
  # Copy entrypoint.sh to /app
40
  COPY entrypoint.sh /app/entrypoint.sh
41
 
42
+ # Change permissions using su-exec
43
+ RUN su-exec user chmod +x /app/entrypoint.sh
44
 
45
  # Set the entrypoint script as executable
46
  ENTRYPOINT ["/app/entrypoint.sh"]