Hello I’m trying to deploy my ktor app to `Docker`...
# ktor
a
Hello I’m trying to deploy my ktor app to
Docker
using this
Dockerfile
Copy code
FROM gradle:7-jdk11 AS build
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle buildFatJar --no-daemon

FROM openjdk:11
EXPOSE 7000:7000
RUN mkdir /app
COPY --from=build /home/gradle/src/build/libs/*.jar /app/web-agent.jar
ENTRYPOINT ["java","-jar","/app/web-agent.jar"]
When I run the image and I open the web-page I’m getting a page with 404
p
Does your application run on port 7000?
a
I resolve this issue, thank you
h
Personally, I would use jib to create Docker images instead a Dockerfile https://github.com/GoogleContainerTools/jib
🙏 1
p
Abolutely - a good option
🙏 1
d
Does the manual creation have an advantage over the creation with the ktor plugin?
h
The Ktor plugin uses jib
102 Views