Skip to content

Commit 42dc36c

Browse files
committed
Update Permission Denied Run Shell Installation
1 parent 8b92e46 commit 42dc36c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ COPY --from=nodejs /usr/local /usr/local
2020
EXPOSE 80 443
2121

2222
# Script Installation
23+
USER root
2324
COPY run.sh /usr/local/run.sh
2425
RUN chmod a+x /usr/local/run.sh
26+
USER nobody
2527

2628
# Run Script
2729
CMD ["/usr/local/run.sh"]

docker-compose.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ services:
88
sut:
99
image: alpine:3.18
1010
depends_on:
11-
- app
11+
- app
12+
command: sh -c "
13+
chmod +x /tmp/test.sh &&
14+
/tmp/test.sh"
15+
volumes:
16+
- "./test.sh:/tmp/test.sh"

0 commit comments

Comments
 (0)