Skip to content

Commit

Permalink
Fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aNNiMON committed Oct 6, 2020
1 parent c3868f1 commit b4c971f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ WORKDIR /usr/src/java-code
RUN GRADLE_OPTS="-Xmx256m" gradle shadowJar --build-cache --stacktrace --no-daemon

FROM openjdk:11
RUN mkdir -p /app
COPY --from=builder /usr/src/java-code/build/libs/SimilarImagesBot-1.0-all.jar /app/SimilarImagesBot-1.0-all.jar
ENV BOT_TOKEN ''
ENV ADMIN_ID 0
ENV MODE 'once'
CMD java -jar /app/SimilarImagesBot-1.0-all.jar
WORKDIR /app
COPY --from=builder /usr/src/java-code/build/libs/SimilarImagesBot-1.0.1-all.jar .
ENV BOT_TOKEN '' \
ADMIN_ID 0 \
MODE 'once'
ENTRYPOINT ["java", "-jar", "/app/SimilarImagesBot-1.0.1-all.jar"]
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sourceCompatibility = 11
targetCompatibility = 11
mainClassName = 'com.annimon.similarimagesbot.Main'
group 'com.annimon'
version '1.0'
version '1.0.1'

repositories {
jcenter()
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit b4c971f

Please sign in to comment.