Update to java 17
This commit is contained in:
parent
0f78b51945
commit
baea748f90
|
@ -1,3 +1,4 @@
|
||||||
|
ARG VERSION=17
|
||||||
FROM golang AS builder
|
FROM golang AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -9,8 +10,8 @@ COPY ./go.sum /app
|
||||||
RUN go build -o /app/main /app/src/main.go
|
RUN go build -o /app/main /app/src/main.go
|
||||||
RUN go build -o /app/cmd /app/src/cmd.go
|
RUN go build -o /app/cmd /app/src/cmd.go
|
||||||
|
|
||||||
ARG JAVA_VERSION=16
|
|
||||||
FROM openjdk:16
|
FROM openjdk:$VERSION
|
||||||
|
|
||||||
ENV MIN_MEM=512M
|
ENV MIN_MEM=512M
|
||||||
ENV MAX_MEM=1G
|
ENV MAX_MEM=1G
|
||||||
|
|
Loading…
Reference in New Issue