Skip to content

Commit

Permalink
put api key to .evn for Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ting-Yi Liu committed Feb 8, 2021
1 parent 7a57c7d commit a7679ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ out/

### hide api secret
gradle.properties
Dockerfile
.env
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# openjdk:11
FROM adoptopenjdk:11-jre-hotspot
VOLUME /tmp
ARG JAR_FILE=build/libs/\*.jar
COPY ${JAR_FILE} app.jar

ENTRYPOINT ["java", "-Dspring.security.oauth2.client.registration.google.client-id='${GOOGLE_OAUTH_CLIENT_ID}'", "-Dspring.security.oauth2.client.registration.google.client-secret='${GOOGLE_OAUTH_CLIENT_SECRET}'","-jar","/app.jar"]

EXPOSE 3000

0 comments on commit a7679ad

Please sign in to comment.