Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.63 KB

File metadata and controls

46 lines (36 loc) · 1.63 KB

About

The Oracle Instant Client distribution as container image

Source | Docker Hub | GitHub Container Registry

Tags

  • v19, v19-lite
  • v21, v21-lite
  • v23, v23-lite

Supported platforms

  • linux/amd64
  • linux/arm64 * (Only available for Oracle Instant Client v19)

Usage

# Oracle Instant Client Distribution
FROM socheatsok78/oracle-instantclient-distribution:v19 AS oicd-distribution

# Final
FROM alpine:latest
ENV PATH=/opt/oracle/instantclient:$PATH
ENV LD_LIBRARY_PATH=/opt/oracle/instantclient:$LD_LIBRARY_PATH
RUN apk add --no-cache gcompat libaio
COPY --from=oicd-distribution /opt/oracle /opt/oracle

If you are using multi-platform build, you can use the following workaround to build the image for both linux/amd64 and linux/arm64:

FROM socheatsok78/oracle-instantclient-distribution:v23 AS oicd-distribution-amd64
FROM socheatsok78/oracle-instantclient-distribution:v19 AS oicd-distribution-arm64
FROM oicd-distribution-${TARGETARCH} AS oracle-instantclient

# Final
FROM alpine:latest
ENV PATH=/opt/oracle/instantclient:$PATH
ENV LD_LIBRARY_PATH=/opt/oracle/instantclient:$LD_LIBRARY_PATH
RUN apk add --no-cache gcompat libaio
COPY --from=oicd-distribution /opt/oracle /opt/oracle

References