File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1+ docker-entrypoint.sh
Original file line number Diff line number Diff line change 1+ core_config_version : 0
2+ postgresql_config_version : 0
Original file line number Diff line number Diff line change 1111curl -o jre.zip -s -X GET \
1212 " https://raw.githubusercontent.com/supertokens/jre/master/jre-15.0.1-${OS} .zip"
1313
14- # # fetching docker-entrypoint.sh from github
15- curl -o docker-entrypoint.sh -s -X GET \
14+ # # fetching docker-entrypoint.sh from github if file doesn't exists
15+ if [ ! -f docker-entrypoint.sh ]; then
16+ curl -o docker-entrypoint.sh -s -X GET \
1617 " https://raw.githubusercontent.com/supertokens/supertokens-docker-postgresql/master/docker-entrypoint.sh"
18+ fi
1719
1820# # marking docker-entrypoint.sh as executable
1921chmod +x docker-entrypoint.sh
@@ -30,8 +32,7 @@ cp -r ../downloader downloader
3032cp -r ../plugin-interface plugin-interface
3133cp -r ../plugin plugin
3234cp -r ../install ./
33- cp -r ../temp/config.yaml ./
34- cp -r ../temp/config.yaml config.yaml.original
35+ cp -r config.yaml ./
3536cp -r ../version.yaml ./
3637
3738# # building the docker image
@@ -44,8 +45,5 @@ rm -rf downloader
4445rm -rf plugin-interface
4546rm -rf plugin
4647rm -rf install
47- rm -rf config.yaml
48- rm -rf config.yaml.original
4948rm -rf version.yaml
50- rm -rf jre
51- rm -rf docker-entrypoint.sh
49+ rm -rf jre
You can’t perform that action at this time.
0 commit comments