We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b92e46 commit 42dc36cCopy full SHA for 42dc36c
Dockerfile
@@ -20,8 +20,10 @@ COPY --from=nodejs /usr/local /usr/local
20
EXPOSE 80 443
21
22
# Script Installation
23
+USER root
24
COPY run.sh /usr/local/run.sh
25
RUN chmod a+x /usr/local/run.sh
26
+USER nobody
27
28
# Run Script
29
CMD ["/usr/local/run.sh"]
docker-compose.yml
@@ -8,4 +8,9 @@ services:
8
sut:
9
image: alpine:3.18
10
depends_on:
11
- - app
+ - 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