Brian Hartvigsen
2 years ago
4 changed files with 51 additions and 2 deletions
@ -0,0 +1,13 @@
|
||||
FROM eclipse-temurin:11-jre-jammy |
||||
|
||||
ARG VERSION |
||||
ARG SLF4J_VERSION=1.7.36 |
||||
|
||||
WORKDIR /opt/app |
||||
EXPOSE 8080 |
||||
|
||||
ADD json-path-web-test-${VERSION}.tar /opt/app/ |
||||
RUN mv json-path-web-test-${VERSION} json-path-web-test |
||||
ADD https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/${SLF4J_VERSION}/slf4j-simple-${SLF4J_VERSION}.jar /opt/classpath/ |
||||
|
||||
CMD ["java", "-classpath", "/opt/app/json-path-web-test/lib/*:/opt/classpath/*", "com.jayway.jsonpath.web.boot.Main"] |
@ -0,0 +1,21 @@
|
||||
app = "jsonpath" |
||||
primary_region = "sea" |
||||
|
||||
[build] |
||||
image = "registry.fly.io/jsonpath-eval" |
||||
|
||||
[http_service] |
||||
internal_port = 8080 |
||||
force_https = true |
||||
auto_stop_machines = true |
||||
auto_start_machines = true |
||||
|
||||
[checks] |
||||
[checks.info] |
||||
port = 8080 |
||||
type = "http" |
||||
interval = "15s" |
||||
timeout = "5s" |
||||
grace_period = "5s" |
||||
method = "get" |
||||
path = "/api/info" |
Loading…
Reference in new issue