mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-27 08:09:58 +00:00
Similar to how we pin base `debian` images, also pin `python` base images, so we better cache them and have reproducible builds.
12 lines
349 B
Docker
12 lines
349 B
Docker
# use base image openjdk:22
|
|
FROM openjdk:22@sha256:b7d44427f4622d3f6b9a60583e5218ecfa8b4e44f3e01dfd0d9b7d7abba31c9a
|
|
WORKDIR /source
|
|
|
|
COPY . .
|
|
|
|
WORKDIR /app
|
|
RUN curl --output postgresql.jar https://jdbc.postgresql.org/download/postgresql-42.7.2.jar && \
|
|
javac -d /app /source/Example.java
|
|
|
|
CMD ["java", "-cp", "/app/postgresql.jar:.", "Example"]
|