GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cloud-code-samples/java/java-hello-world/Dockerfile at v1 · GoogleCloudPlatform/cloud-code-samples

Expand file tree

/

Dockerfile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
27 lines (19 loc) · 740 Bytes
/

Dockerfile

Copy path

File metadata and controls

27 lines (19 loc) · 740 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Use maven to compile the java application.
FROM maven:3-jdk-11-slim AS build-env
# Set the working directory to /app
WORKDIR /app
# copy the pom.xml file to download dependencies
COPY pom.xml ./
# download dependencies as specified in pom.xml
# building dependency layer early will speed up compile time when pom is unchanged
RUN mvn verify --fail-never
# Copy the rest of the working directory contents into the container
COPY . ./
# Compile the application.
RUN mvn -Dmaven.test.skip=true package
# Build runtime image.
FROM openjdk:11.0.16-jre-slim
# Copy the compiled files over.
COPY --from=build-env /app/target/ /app/
# Starts java app with debugging server at port 5005.
CMD ["java", "-jar", "/app/hello-world-1.0.0.jar"]
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.