-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 1.01 KB
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
ARG PYTHON_VERSION
ARG JAVA_VERSION
FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:$JAVA_VERSION-jre-alpine as java
FROM --platform=$TARGETOS/$TARGETARCH python:$PYTHON_VERSION-alpine
ENV JAVA_HOME=/opt/java/openjdk
COPY --from=java $JAVA_HOME $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}"
LABEL author="ZingyAwesome" maintainer="development@zingyawesome.com"
LABEL org.opencontainers.image.source="https://github.com/ZingyAwesome/pyjava"
RUN apk add --update --no-cache cmake make ca-certificates curl g++ gcc git openssl sqlite tar tzdata gcompat tini libffi-dev zlib-dev jpeg-dev freetype-dev \
&& adduser -D -h /home/container container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
STOPSIGNAL SIGINT
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/sbin/tini", "-g", "--"]
CMD [ "/entrypoint.sh" ]