Skip to content

Commit

Permalink
chore: docker Add parameters RUN_ENVIRONMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed Apr 30, 2024
1 parent e291758 commit 2986147
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM jmal/jdk17_ffmpeg_nvidia:latest

ENV MONGODB_URI "mongodb://mongo:27017/jmalcloud"
ENV ENVIRONMENT=prod
ENV RUN_ENVIRONMENT=prod

ARG VERSION

Expand All @@ -26,4 +26,4 @@ ENV DOCKER_DEFAULT_PLATFORM=linux/amd64,linux/arm64

EXPOSE 8088

CMD java -jar -Xms50m -Xmx512m /usr/local/clouddisk-$VERSION-exec.jar --spring.profiles.active=$ENVIRONMENT --spring.data.mongodb.uri=$MONGODB_URI --file.monitor=false --file.rootDir=/jmalcloud/files --file.ip2region-db-path=/jmalcloud/ip2region.xdb
CMD java -jar -Xms50m -Xmx512m /usr/local/clouddisk-$VERSION-exec.jar --spring.profiles.active=$RUN_ENVIRONMENT --spring.data.mongodb.uri=$MONGODB_URI --file.monitor=false --file.rootDir=/jmalcloud/files --file.ip2region-db-path=/jmalcloud/ip2region.xdb

0 comments on commit 2986147

Please sign in to comment.