File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11FROM alpine:3.13
22LABEL maintainer="Asif Mohammad Mollah <https://mrasif.in>"
3- RUN apk update
4- RUN apk add curl ca-certificates
3+ RUN apk --no-cache add curl ca-certificates
54WORKDIR /script
65COPY ./script.sh /script/
76COPY ./curlrc /script/.curlrc
Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ It will run script from any public url or local file.
99### Using Docker:
1010- Create ` Dockerfile `
1111```
12- FROM techthinkerorg/script-runner:1.1 .0
12+ FROM techthinkerorg/script-runner:1.2 .0
1313WORKDIR /script
1414COPY ./your-script.sh /script/
1515ENV SCRIPT_PATH "your-script.sh"
1616```
1717or
1818```
19- FROM techthinkerorg/script-runner:1.1 .0
19+ FROM techthinkerorg/script-runner:1.2 .0
2020ENV SCRIPT_URL "script-location-url.sh"
2121```
2222- Run ` docker build -f ./Dockerfile -t your-image-name . `
@@ -29,7 +29,7 @@ version: "3"
2929services :
3030 script :
3131 container_name : script-runner
32- image : techthinkerorg/script-runner:1.1 .0
32+ image : techthinkerorg/script-runner:1.2 .0
3333 environment :
3434 - SCRIPT_URL=script-location-url.sh
3535` ` `
5151 spec:
5252 containers:
5353 - name: your-deployment-cron
54- image: techthinkerorg/script-runner:1.1 .0
54+ image: techthinkerorg/script-runner:1.2 .0
5555 env:
5656 - name: SCRIPT_URL
5757 value: "script-location-url.sh"
You can’t perform that action at this time.
0 commit comments